Today will learn, exercised and getting some programmatic access for our AWS account.
IAM Programmatic access
To gain entry to your AWS account via a terminal or system will utilize AWS Access keys and AWS Secret Access keys.
What is AWS CLI ?
The AWS Command Line Interface (AWS CLI) serves as a unified solution for overseeing your AWS services. By downloading and configuring this single tool, you can command numerous AWS services from the terminal and automate tasks via scripts.
AWS CLI v2 introduces several enhancements, like better installers, updated configuration choices such as the AWS IAM Identity Center (which succeeds AWS SSO), and diverse interactive functions.
Task-01
- Create AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY from AWS Console.
- To create access key and secrete we need to login to AWS console and select IAM service.
Select user (in our case I chooses Hulk)
Next select security credentials tab.
select create access key.
Select CLI as use case option
Hit create access key button to generate access key and secrete access key.
save it and used it for programmatic access into other AWS service.
Task-02
- Setup and install AWS CLI and configure your account credentials.
- to install AWS CLI please visit to https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html and follow instruction as per your operating system. (Here I am installing on windows).
Download the setup and follow the steps as part of installation process.
verify the installation using C:\> aws --version
command in command prompt.
To configure AWS account below command (aws configure) and provide requested details like access key and secret which are created in task 1.
Kudo's ! We have now successfully set up AWS CLI with user account credentials. We can start using AWS services from the command line, making our workflow more efficient and automated.