AWS Identity and Access Management (IAM) controls access to AWS resources. Use this integration to manage users, roles, policies, groups, and access keys, or simulate a principal’s permissions before changing them.
Simulate Principal Policy returns one result per action regardless of how many resource ARNs you pass. The top-level decision is the aggregate across every resource — most restrictive wins — and the top-level resource name is an ARN template for the resource type, not one of your ARNs. Per-resource answers live in resourceSpecificResults, and when you supply concrete ARNs, missing context keys are reported there too rather than at the top level. Read resourceSpecificResults whenever you simulate against more than one resource: the aggregate alone will tell you a principal is denied when it is in fact allowed on some of them.
The secret half of a new access key is returned once and is hidden from block output display and execution logs. It stays resolvable downstream, so rotation workflows can pass it straight to the system that needs it — but a block you pass it into will log it under that block's own inputs.
Use the block
Create and manage users, roles, policies, groups, and access keys.
Actions
IAM List Users
List IAM users in your AWS account
IAM Get User
Get detailed information about an IAM user
IAM Create User
Create a new IAM user
IAM Delete User
Delete an IAM user
IAM List Roles
List IAM roles in your AWS account
IAM Get Role
Get detailed information about an IAM role
IAM Create Role
Create a new IAM role with a trust policy
IAM Delete Role
Delete an IAM role
IAM Attach User Policy
Attach a managed policy to an IAM user
IAM Detach User Policy
Remove a managed policy from an IAM user
IAM Attach Role Policy
Attach a managed policy to an IAM role
IAM Detach Role Policy
Remove a managed policy from an IAM role
IAM List Policies
List managed IAM policies
IAM Get Policy
Get details about a managed IAM policy, including its description — the field ListPolicies never returns
IAM Create Access Key
Create a new access key pair for an IAM user
IAM Delete Access Key
Delete an access key pair for an IAM user
IAM List Access Keys
List an IAM user's access key IDs with their status and age — use to find stale keys and to confirm which keys remain after a rotation
IAM Update Access Key
Activate or deactivate an IAM access key — deactivate an old key and verify nothing breaks before deleting it
IAM List Groups
List IAM groups in your AWS account
IAM Add User to Group
Add an IAM user to a group
IAM Remove User from Group
Remove an IAM user from a group
IAM List Attached Role Policies
List all managed policies attached to an IAM role
IAM List Attached User Policies
List all managed policies attached to an IAM user
IAM Simulate Principal Policy
Simulate whether a user, role, or group is allowed to perform specific AWS actions — useful for pre-flight access checks