IAM Setup
Use this skill when datus iam is installed but has no configured environment.
Config structure
Profiles live under agent.plugins.iam.<profile> in the config file named by
the ## Plugins section of the system prompt:
agent:
plugins:
iam:
prod:
default: true
region: us-east-1 # IAM is global; region is used for the endpoint
# credentials — omit to use the standard boto3 chain, otherwise any of:
profile: my-aws-profile
access_key_id: ${AWS_ACCESS_KEY_ID} # secret — env var reference
secret_access_key: ${AWS_SECRET_ACCESS_KEY} # secret
role_arn: arn:aws:iam::123456789012:role/datus-readonly # assume this role
Steps
- Ask for the auth method (prefer the AWS chain;
${VAR}for any keys). - The IAM principal needs read/simulate access:
iam:Get*,iam:List*,iam:SimulatePrincipalPolicy,iam:SimulateCustomPolicy, andsts:GetCallerIdentity. This plugin performs no write actions. - Write the profile into the config file named in the
## Pluginspreamble; mark the first profiledefault: true. - Verify with
datus iam whoami.
Troubleshooting
no AWS credentials found— set credentials or run where the chain resolves.AccessDeniedlisting roles/policies — the principal lacksiam:List*/iam:Get*; simulation additionally needsiam:Simulate*.