Using Console
Using CLI
aws configure
command or by providing temporary credentials if using an IAM role.
<username>
with the name of the suspicious IAM user.
<username>
with the name of the suspicious IAM user.
<role-name>
with the name of the suspicious IAM role, and file://path/to/policy.json
with the local file path containing the updated trust policy JSON.
<username>
with the name of the suspicious IAM user, <policy-name>
with the name of the policy to update, and file://path/to/policy.json
with the local file path containing the updated policy JSON.
Using Python
'your-policy-arn'
with the ARN of the IAM policy you want to review and adjust.