IAM Programmatic access and AWS CLI πŸš€ ☁

Β·

2 min read

IAM Programmatic access and AWS CLI πŸš€ ☁

IAM Programmatic access

To access your AWS account from a terminal or system, you can use AWS Access keys and AWS Secret Access keys.

IAM programmatic access refers to the ability to use AWS services programmatically by making API calls using access keys and secret keys. These access keys are generated by IAM and are used to authenticate the programmatic access to AWS services.

IAM programmatic access refers to the ability to use AWS services programmatically by making API calls using access keys and secret keys. These access keys are generated by IAM and are used to authenticate the programmatic access to AWS services.

AWS CLI

The AWS Command Line Interface (AWS CLI) is a unified tool to manage your AWS services. With just one tool to download and configure, you can control multiple AWS services from the command line and automate them through scripts.

The AWS CLI v2 offers several new features including improved installers, new configuration options such as AWS IAM Identity Center (successor to AWS SSO), and various interactive features.

Task-01

Create AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY from AWS Console.

  1. Creating access keys & secret keys are only done by admins i.e. users having AdministratorAccess as root users have.

  2. Here we have given an AdministratorAccess policy to one user.

  3. Login via user(admin) and click on the username on the right top side then the dropdown will open and click over security credentials.

  4. Follow the steps below.

  5. Here we can discover our alternative access keys.

Task-02

  • Setup and install AWS CLI and configure your account credentials.
  1. To download and install AWS CLI on our window, follow the link:

    https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html

  2. Open the downloaded MSI installer and install the setup.

  3. Now open the Command prompt and type "aws configure".

  4. Enter the access key ID and secret key ID which is created in Task-01.

Hope it will help you!

Reference:- video


Thanks for reading my articles.

Keep learning and keep hustling.

Peace out!!

Β