Skip to main content

update-assume-role-policy

The aws iam update-assume-role-policy command is used to update the policy that grants an entity permission to assume a role. This command is critical for managing role-based access control in AWS.

Syntax

aws iam update-assume-role-policy \
--role-name ROLE_NAME \
--policy-document POLICY_DOCUMENT

Options

  • --role-name ROLE_NAME: The name of the IAM role to update.
  • --policy-document POLICY_DOCUMENT: The new policy document that grants permission to assume the role.

See also the original AWS documentation.