Day 42: IAM Programmatic access and AWS CLI ๐
Introduction :
In AWS (Amazon Web Services), "IAM" stands for Identity and Access Management. IAM allows you to manage users and their level of access to the AWS services and resources.
Enabling programmatic access in AWS IAM involves creating access keys (an access key ID and a secret access key) for an IAM user.
These access keys are used by applications, scripts, or other tools to make secure API requests to AWS.
AWS CLI :
The AWS Command Line Interface (CLI) is a powerful tool provided by Amazon Web Services that allows users to interact with AWS services and manage resources directly from the command line.
It provides a set of commands that can be used to perform various tasks such as managing EC2 instances, S3 buckets, IAM configurations, and more.
Task-01
- Create AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY from AWS Console.
Step 1: Go to the IAM dashboard, and click on Users.
step 2: Click on create user.
step 3: Type the name of the user & tick the option I want to create a user.
step 4: Click on Next, Here the user is successfully created.
Task-02
- Set up and install AWS CLI and configure your account credentials.
step 1: Click on the user-created, and select the security credentials.
step 2: Click on the Create access key option.
step 3: Click on the option CLI.
step4: Now the access key & secret key is generated.
step 5: Don't forget to download the .csv file.
step 6: Now install aws-cli on your instance.
step 7: The below image shows the downloaded .csv file which is in Excel format.
step 8: Use the aws configure command to setup your aws account details using aws-cli.
Subscribe to my newsletter
Read articles from sonal singh directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by