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 Identity and Access Management (IAM)
AWS IAM is how I scope each project to exactly the AWS resources it needs, including for AI agents.
AWS Identity and Access Management controls who and what can act on AWS resources, through users, roles, and policies.
I create a named limited-access profile for each project, with a policy scoped to only the resources that project uses. Credentials are short-lived and come from a login step, and I tell agents to use only that profile. This site uses that pattern, with policies kept in the repository. See Guardrails for AI-operated infrastructure.
IAM is how access is controlled in AWS, so the choice is how to use it. A profile per project, with a policy that names only that project’s resources, means an agent working on one project cannot change anything else in the account, even by mistake. Keeping the policies in the repository makes the boundary reviewable.
For several people and several accounts, I would manage access centrally with IAM Identity Center and permission sets rather than separate profiles per project.
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.