Buried lines, half-forgotten flags, secrets dangling from old drafts. You wanted order. You wanted speed. And you wanted to stop trusting guesses when running infrastructure. That’s where AWS CLI-style profiles meet Compliance as Code.
Instead of sprawling scripts, you keep every connection, every credential, every environment in clean, version-controlled profiles. Each profile has a name. Each name maps to a set of rules: regions, permissions, endpoints, MFA. Switch instantly with a single flag in a single command. No second-guessing which environment you’re touching. No silent drift.
Compliance as Code turns policies into living instructions. Policies are not documents that rot in a wiki. They are code that runs, tests, and enforces. Combined with CLI-style profiles, every command you run can inherit compliance checks by default. Deploying to production? That profile enforces the auditing role, logs dedicated to secure storage, and passes runtime scans before changes go live. Your dev profile might permit open testing, but never production writes.