Day 42: 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 and this is called programmatic access. Watch this video for more details.
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.
Task-02
Setup and install AWS CLI and configure your account credentials
sudo apt-get install awscli -y
aws ec2 describe-instances --region us-east-1
aws ec2 describe-instances --filters "Name=instance-type,Values=t2.micro" --query "Reservations[].Instances[].InstanceId" --region us-east-1
Happy Learning :)
Day 42 task is complete!
90DaysOfDevOps Tasksπ