Steps to create and secure temporary session keys in AWS IAM

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 a 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 a 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 the steps to create and secure temporary session keys in AWS IAM

Loges

Leave a Reply

Your email address will not be published. Required fields are marked *