How to activate or deactivate an access key for an IAM user?

Cloud Computing

Hi Team,

I have created an access key in AWS. I want to deactivate an access key for an IAM user from the command line. How can I do that?

1
Answers

Replies

Ans: The update-access-key command is used to deactivate the required access key (access key ID and secret access key) for the IAM user. Below is a representation of the command.


$ aws iam update-access-key --access-key-id AKIAIOSFODNN7EXAMPLE --status Inactive --user-name Ronnie

 
 

If you want to unleash your potential in this competitive field, please visit the Cloud Computing course page for more information, where you can find the Cloud Computing tutorials and Cloud Computing frequently asked interview questions and answers as well.

 

This topic has been locked/unapproved. No replies allowed

Login to participate in this discussion.

Leave a reply

Before proceeding, please check your email for a verification link. If you did not receive the email, click here to request another.