DevOps Agent IAM action prefix is aidevops, not devops-agent
1 min read
Tried writing an IAM policy with devops-agent:* and got permission errors.
The correct prefix is aidevops. The boto3 client name is devops-agent, but IAM actions are aidevops:GetAgentSpace and so on.
client = boto3.client("devops-agent") # client name
# IAM actions are aidevops:ListBacklogTasks{
"Effect": "Allow",
"Action": "aidevops:*",
"Resource": "*"
}Also, as of AWS CLI v2.34.16, there is no aws devops-agent subcommand — it was added in v2.34.20. Update to the latest version to use the CLI. The IAM permissions page lists all available actions.
