|« PreviousNext »|
|Did this page help you? Yes | No | Tell us about it...|
Creates a new AWS Secret Access Key and corresponding AWS Access Key ID for the
specified user. When the key is created, its status is
default. A user can have only a limited number of keys. For more
information, see Appendix A: Limitations on IAM Entities.
Calling this command without specifying a user name creates keys for the user who owns the requesting credentials.
To ensure the security of your AWS account, the secret access key is accessible only during key and user creation. You must save the key (for example, in a text file) if you want to be able to access it again. If a secret key is lost, you can delete the access keys for the associated user and then create new keys. For more information about deleting keys, see iam-userdelkey.
The user the new key will belong to.
The output includes two lines: The first one lists the user's new Access Key ID, and the second lists the corresponding new Secret Access Key.
The following example creates a new access key for the user Bob.
PROMPT> iam-useraddkey -u Bob AKIAIOSFODNN7EXAMPLE wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY