Guardrails for AI-Operated Infrastructure
The permission scoping, deploy paths, and tool hooks I use so AI agents can do real infrastructure and publishing work while people keep the decisions.
AWS CLI
The AWS CLI is the command-line tool I use, through a named limited-access profile, for the AWS tasks my projects need.
The AWS CLI is the command-line interface for AWS services. It reads credentials from named profiles.
I use the AWS CLI with one named profile per project, and I sign in with aws login so the credentials are short-lived. I tell agents to use only that profile and never to fall back to other profiles or static keys. I use it for tasks such as syncing media to S3. See Guardrails for AI-operated infrastructure.
The AWS CLI gives me and an agent the same commands, with the same named profile, so what an agent runs is something I can read and run myself. aws login provides short-lived credentials for that profile, so no long-lived keys sit on disk.
For infrastructure that must be repeatable, I would use Terraform rather than CLI commands. Inside an application, the AWS SDK for that language fits better.
The permission scoping, deploy paths, and tool hooks I use so AI agents can do real infrastructure and publishing work while people keep the decisions.