×
Cloud Computing Cloud Services Virtualization

Steps to create and secure temporary session keys in AWS IAM

In this blog, we will show you the steps to create and secure Temporary session keys in AWS IAM.

 

REQUIREMENTS

  • AWS Subscription.

 

ENVIRONMENT OVERVIEW

 

  • For demo purpose, we have created a new IAM user with full administrative access.

Steps to create and secure temporary session keys in AWS IAM

 

Note: We are using windows environment for the demo purpose

 

 

  • Before, creating the session key, make sure that you have configured IAM account.

Steps to create and secure temporary session keys in AWS IAM

 

  • By Default, AWS CLI configure will be stored in C:\Users\<user account>\.aws folder.

Steps to create and secure temporary session keys in AWS IAM

 

CREATING TEMPORARY SESSION KEY

 

  • We can able to generate temporary credentials using the above access and secret key. To do that, type the below command.

aws sts get-session-token

Steps to create and secure temporary session keys in AWS IAM

  • Now you received new access key, secret key and session token to perform all the operations which your primary user does. The difference between the temporary and long term key is the expiration date.

 

  • So these temporary keys will expire after a certain duration of time. But your primary user key will not expire until you explicitly disable it.

 

 

Thanks for reading this blog. We hope this was useful for you to know about temporary session keys in AWS.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.