Managing Access Keys for IAM Users
Managing Access Keys (Console)
An IAM user's access keys can be managed via AWS Management Console.
To create, modify, or delete your own IAM user access keys (console)
- Sign-in to the IAM console via AWS account ID or account alias, your IAM username, and password.
- Select your username and My Security Credentials in the navigation bar on the upper right.
- Now expand the Access Keys (access key ID and secret access key) section.
- You can perform any of the following tasks-
- Select Create New Access Key in order to create an access key; while, if you want to copy and paste the key somewhere else to secure it, then, select Show Access Key.
- If you want to disable an active access key, choose Make Inactive.
- If you would like to reenable an inactive access key, choose Make Active.
- Choose Delete, to delete your access key.
To create, modify, or delete another IAM user's access keys (console)
- Firstly, sign-in to the AWS Management Console and open the IAM console at https://console.aws.amazon.com/iam/.
- Now, choose Users in the navigation pane.
- Select the username whose access keys you want to manage, and then the Security Credentials tab.
- You can do the following in the Access Keys section:
- Select Create New Access Key in order to create an access key, and then, Download.csv file to save its ID and secret access to a CSV file on your computer.
- If you want to disable an active access key, choose Make Inactive.
- If you would like to reenable an inactive access key, choose Make Active.
- Choose Delete, to delete your access key.
To list the access keys for an IAM user (console)
- First of all, sign-in to the AWS Management Console and open the IAM console at https://console.aws.amazon.com/iam/.
- Now, choose Users in the navigation pane.
- Select the required username and then the Security Credentials tab. The user's access keys and the status of each key is displayed.
Note: However, only the user's access key ID is visible and the secret access key can only be retrieved when key is created.
To list the access key IDs for multiple IAM users (console)
- Sign-in to the AWS Management Console and open the IAM console at https://console.aws.amazon.com/iam/.
- Now, choose Users in the navigation pane.
- If required, you can also add the Access Key ID column to the users table.
- The Access Key ID column shows each access key ID followed by its state.
This information may help in viewing and copying the access keys for the users having one or two access keys. The column will display None for the users with no access key.
To find which IAM user owns a specific access key (console)
- You have to sign-in to the AWS Management Console and open the IAM console at https://console.aws.amazon.com/iam/.
- Now, choose Users in the navigation pane.
- Type or paste the access key ID of the required user in the search box.
- If you want, you can also add the Access key ID column to the users table.
Managing Access Keys (AWS CLI)
The following commands can be run to manage an IAM user's access keys from the AWS CLI-
- To create an access key: aws iam create-access-key.
- To disable or reenable an access key: aws iam update-access-key.
- To list a user's access keys: aws iam list-access-keys.
- To determine when an access key was most recently used: aws iam get-access-key-last-used.
- To delete an access key: aws iam delete-access-key.
Managing Access Keys (AWS API)
The following operations should be called to manage an IAM user's access keys from the AWS API-
- To create an access key: CreateAccessKey.
- To disable or reenable an access key: UpdateAccessKey.
- To list a user's access keys: ListAccessKeys.
- To determine when an access key was last used: GetAccessKeyLastUsed.
- To delete an access key: DeleteAccessKey.
Comments
Post a Comment