Skip to content

Latest commit

 

History

History
58 lines (43 loc) · 1.66 KB

Ex-2.md

File metadata and controls

58 lines (43 loc) · 1.66 KB

Creation and Usage of Access Keys

Prerequisites

  • AWS account
  • IAM user with admin access (Refer Ex-1)

Procedure for Creating Access Keys

  • Login to AWS account Link: https://aws.amazon.com/
  • Go to IAM service
  • Click on Users
  • Select the user for which you want to create access keys Select User
  • Click on Security Credentials tab Security Credentials
  • In the same page, scroll down to Access Keys section and click on Create Access Key Create Access Key
  • In Access key best practices & alternatives page click on others and click next to proceed
  • Provide description and click on Create Access Key Create Access Key
  • Download the CSV file and store it in a secure location because this is the only time you will be able to see the secret access key Download CSV

Procedure for Using Access Keys using AWS CLI

  • Download and install AWS CLI Link
  • Verify the installation
aws --version
which aws

Verify Installation

  • Configure AWS CLI using the access key and secret access key
aws configure
  • Provide the access key and secret access key
  • Provide the region and output format
  • Now you can use AWS CLI to perform any operation Configure AWS CLI
  • To verify the configuration
aws sts get-caller-identity

Verify Configuration

  • Success! You have created and used access keys using AWS CLI