Run the below command to view all the roles defined in an AWS account. aws iam list-roles
Continue readingCategory: How-To Guides
How to delete an IAM user
Below is the command to delete an IAM user using AWS command line where username is the name of the
Continue readingHow to delete an inline policy of an IAM user
Below is the command to delete an inline policy from an IAM user where username is the name of the
Continue readingHow to detach a policy from an IAM user
Use the below command to detach an attached policy from an IAM user where username is the name of the
Continue readingHow to remove an IAM user from a group
To remove an IAM user from an IAM group, use the below command where username is the name of the
Continue readingHow to rename an IAM user
Use the below command to rename an IAM user from AWS CLI where oldusername is the current user name and
Continue readingHow to add user to an IAM group
Below is the command to add user to an IAM group where username is the name of the user and
Continue readingHow to attach policy to an IAM user
Use the below command to attach policy to an IAM user where username is the name of the user and
Continue readingHow to view the contents of an IAM policy
Use the below command to retrieve information about an IAM managed policy where ‘arn:aws:iam::123456789123:policy/POLICYNAME’ is the arn of the policy.
Continue readingHow to attach policy to an IAM group
Use the below command to attach a policy to an IAM group where TeamA is the group name and ‘arn:aws:iam::123456789123:policy/POLICYNAME’
Continue reading