IAM Programmatic access and AWS CLI

IAM Programmatic access and AWS CLI

IAM Programmatic access

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

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.

Log in to your AWS Management Console.

Click on your username in the top right corner of the console and select "Security Credentials" from the drop-down menu.

No alt text provided for this image
No alt text provided for this image

Click on the "Access keys (access key ID and secret access key)" section.

No alt text provided for this image

Click on "Create Access Key."

No alt text provided for this image

Your access key ID and secret access key will be displayed. Make sure to download the CSV file with your access key information and store it in a secure location.

No alt text provided for this image

Setup and install AWS CLI and configure your account credentials

Install the AWS CLI by following the instructions for your operating system:?https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html

No alt text provided for this image
No alt text provided for this image

Check aws-cli version

use command "aws --version"

No alt text provided for this image

Once you have installed the AWS CLI, open a terminal or command prompt and run the following command to configure your account credentials:

You will be prompted to enter your AWS Access Key ID and Secret Access Key. Copy and paste access key and secret key from downloaded csv file. You will also be prompted to enter your default region and output format. Choose the region that is closest to your location and select a suitable output format.

No alt text provided for this image

Once you have entered your credentials and configured your default settings, you can test that the CLI is working by running the following command:

No alt text provided for this image

This command should list the contents of your default S3 bucket. You have now set up and installed the AWS CLI and configured your account credentials.

Thanks for reading :-

要查看或添加评论,请登录

Kashi Diggi的更多文章

  • Day 44: Relational Database Service in AWS

    Day 44: Relational Database Service in AWS

    Amazon Relational Database Service (Amazon RDS) is a collection of managed services that makes it simple to set up…

  • Day 43: S3 Programmatic access with AWS-CLI

    Day 43: S3 Programmatic access with AWS-CLI

    S3 Amazon Simple Storage Service (Amazon S3) is an object storage service that provides a secure and scalable way to…

  • Setting up an Application Load Balancer with AWS EC2

    Setting up an Application Load Balancer with AWS EC2

    What is Load Balancing? Load balancing is the distribution of workloads across multiple servers to ensure consistent…

  • Day 40 AWS EC2 Automation

    Day 40 AWS EC2 Automation

    Automation in EC2: Amazon EC2 or Amazon Elastic Compute Cloud can give you secure, reliable, high-performance, and…

  • Day 39 AWS and IAM Basics

    Day 39 AWS and IAM Basics

    AWS: Amazon Web Services is one of the most popular Cloud Provider that has free tier too for students and Cloud…

  • Day 38 Getting Started with AWS Basics

    Day 38 Getting Started with AWS Basics

    AWS: Amazon Web Services (AWS) is a comprehensive cloud computing platform offered by Amazon that provides a wide range…

  • Day 34 Task: Working with Services in Kubernetes

    Day 34 Task: Working with Services in Kubernetes

    What are Services in K8s In Kubernetes, Services are objects that provide stable network identities to Pods and…

    1 条评论
  • Working with Namespaces and Services in Kubernetes

    Working with Namespaces and Services in Kubernetes

    What are Namespaces and Services in k8s? In Kubernetes, Namespaces are used to create isolated environments for…

  • Launching your Kubernetes Cluster with Deployment

    Launching your Kubernetes Cluster with Deployment

    What is Deployment in k8s A Deployment provides a configuration for updates for Pods and ReplicaSets. You describe a…

  • Task: Launching your First Kubernetes Cluster with Nginx running

    Task: Launching your First Kubernetes Cluster with Nginx running

    What is minikube? Minikube is a tool which quickly sets up a local Kubernetes cluster on macOS, Linux, and Windows. It…

    1 条评论

社区洞察

其他会员也浏览了