You are on page 1of 1

(Version 2010-05-08)

Quick Reference Card Revised:8/31/2010

Users Groups Signing Certificates


iam-usercreate iam-groupcreate iam-useraddcert
Creates a new User in your AWS Account. Optionally Creates an empty group in your AWS Account. Verbose Uploads or creates a new signing certificate for a User.
adds the User to one or more groups and creates an mode returns the group’s ARN and GUID. iam-useraddcert [-u USERNAME] [-c CERTIFICATE
access key for the User. Verbose mode returns the iam-groupcreate -g GROUPNAME [-p PATH] [-v] | -f CERTIFICATEFILE]
User’s ARN and GUID. The default value for the path
is /.
iam-usercreate -u USERNAME [-p PATH] iam-grouplistusers iam-userlistcerts
[-g GROUPS] [-k] [-v] Lists all the Users in a group. Lists information about the User’s certificates. Verbose
iam-grouplistusers -g GROUPNAME mode returns the certificate’s contents.
iam-userlistbypath iam-userlistcerts [-u USERNAME] [-v]
Lists the AWS Account’s Users, or lists Users with the
specified path prefix.
iam-grouplistbypath
Lists the AWS Account’s groups, or lists groups with the iam-usermodcert
iam-userlistbypath [-p PATH]
specified path prefix. Changes the status of a certificate.
iam-usermod iam-grouplistbypath [-p PATH] iam-usermodcert [-u USERNAME] -c CERTIFICATEID
Changes the User’s name or path, or both. -s Active|Inactive
iam-usermod -u USERNAME [-n NEWUSERNAME] [-p
PATH] iam-groupmod iam-userdelcert
Changes the group’s name or path, or both.
Deletes a certificate.
iam-userdel iam-groupmod -g GROUPNAME [-n NEWGROUPNAME] [-p
iam-userdelcert [-u USERNAME] -c CERTIFICATEID
Deletes a User. If the User is still in groups, or has NEWPATH]
credentials or policies, the -r option removes the User
from the groups and recursively deletes the credentials User Policies
and policies. The -p option used with -r shows the iam-groupdel
groups, credentials, and policies without performing Deletes a group. If the group still has Users or policies,
the -r option removes the Users and deletes the iam-useraddpolicy
the deletion.
policies. The -p option used with -r shows the Users Creates a policy; use for simple policies with no
iam-userdel -u USERNAME [-r [-p]] conditions. EFFECT: Allow or Deny. -o returns the
and policies without performing the deletion.
iam-groupdel -g GROUPNAME [-r [-p]] resulting policy. Use quotation marks around * for
Access Keys EFFECT or ARN wildcard.
iam-useraddpolicy -u USERNAME
iam-groupaddpolicy -p POLICY_NAME -e EFFECT {-a ACTION...}
iam-useraddkey Creates and attaches a policy to the specified group. {-r ARN...} [-o]
Creates a new access key for a User. iam-groupaddpolicy -g GROUPNAME -p POLICYNAME
iam-useraddkey [-u USERNAME] -e EFFECT {-a ACTION...} {-r ARN...} [-o]
iam-useruploadpolicy
Uploads a policy (a JSON document).
iam-userlistkeys iam-groupuploadpolicy iam-useruploadpolicy -u USERNAME -p POLICYNAME
Lists information about the User’s access keys. Uploads a policy (a JSON document). [-f POLICYDOCUMENTFILE |-o POLICYDOCUMENT]
iam-userlistkey [-u USERNAME] iam-groupuploadpolicy -g GROUPNAME
-p POLICYNAME [-f POLICYDOCUMENTFILE |
-o POLICYDOCUMENT]
iam-userlistpolicies
iam-usermodkey Lists information about the User’s certificates. Verbose
Changes the status of an access key. mode returns the certificate’s contents.
iam-usermodkey [-u USERNAME] -k ACCESSKEYID iam-grouplistpolicies iam-userlistpolicies -u USERNAME [-v]
-s Active|Inactive Lists a specific policy or all the policies attached to the
specified group.
iam-grouplistpolicies -g GROUPNAME [-p iam-userdelpolicy
iam-userdelkey
POLICYNAME] [-v] Deletes a policy.
Deletes an access key.
iam-userdelpolicy -u USERNAME -p POLICYNAME
iam-userdelkey [-u USERNAME] -k ACCESSKEYID

You might also like