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 readingHow to view all the policies attached to an IAM group
Below is the command to view all the policies attached to an IAM group where TeamA is the name of
Continue readingHow to list all the IAM groups of your AWS account
Below is the command to list all the IAM groups of your AWS account. aws iam list-groups Sample output of
Continue readingHow to identify groups that an IAM user belongs to
Run the below command to list all the groups that an IAM user belongs to where username is the name
Continue readingHow to list all IAM users of an AWS account
Below is the command to retrieve all the users of your AWS account. aws iam list-users
Continue readingHow to list all users of an IAM group
To list all the users of a particular IAM group, use the below cli command where TeamA is the name
Continue readingHow to enable and disable programmatic access to an IAM user
Access keys are required to programmatically access AWS resources. Access keys are a combination of access key ID and secret
Continue reading