The AWS Command Line Interface is a single tool for managing AWS services from a terminal. Commands follow the pattern aws <service> <operation>, which makes it the usual way to script repetitive tasks, automate pipelines and work with AWS without the web console.
The posts start with installing AWS CLI v2 on Linux, macOS and Windows and configuring credentials, named profiles and SSO, then checking access with aws sts get-caller-identity. From there you will find command references and worked examples for S3 (cp, sync, presigned URLs and common errors), aws eks cluster and node group commands, Route 53 records, and EKS cluster setup. Practical scripts show how to stop and start RDS instances, cut ElastiCache costs when it cannot be stopped, enable EC2 Session Manager without a bastion host, create AMIs from tagged instances in a CodeBuild buildspec, set credentials in CodeBuild, and build an Ansible dynamic inventory from EC2 public IPs.
These guides are useful for DevOps and cloud engineers automating AWS work, administrators who want repeatable scripts instead of console clicks, and SysOps candidates reviewing CLI syntax and output formats.
Start here
- AWS Tutorials: Install and Configure AWS CLI – Install CLI v2 on any OS, set up credentials, profiles and SSO, and fix common errors.
- AWS Tutorials: AWS S3 Commands Example – Everyday S3 commands with examples, including sync, filters, presigned URLs and error fixes.
- AWS: Route53 a Complete Guide for Domain work – Create a hosted zone and common DNS records with the CLI, then verify them using dig.
- AWS Tutorials: How to Shutdown (Stop / Start) Relational Database Service? – Stop and start RDS instances from the CLI, with a ready script to automate it.
- AWS Commands Line Reference: aws eks – Reference for aws eks commands like create-cluster and create-nodegroup, with examples.
- AWS Tutorials: How to activate AWS EC2 Session Manager? – Reach EC2 instances without a bastion host or public IP using Session Manager.
- Ansible: Dynamic Ansible Inventory Script for AWS EC2 Public IPs – A Bash script that uses the CLI to feed EC2 public IPs into Ansible.
Latest AWS CLI articles
How to set Security Credentials in a AWS Code Build
AWS CodeBuild should get its AWS credentials from an IAM service role attached to the build project, not from access keys typed into environment variables. This guide…
AWS Tutorials: AWS CodeBuild – Buildspec code for creating AMI from running instances
This page has an AWS CodeBuild buildspec that finds every running EC2 instance tagged environment=uat and creates an AMI from each one with the AWS CLI. It…
AWS Tutorials: How to Shutdown (Stop / Start) ElastiCache Service in AWS
Amazon ElastiCache has no stop or start button. You keep paying for every node until you shrink or delete it. This guide shows the two ways to…
AWS Tutorials: AWS S3 Commands Example
The aws s3 commands in the AWS CLI handle everyday Amazon S3 work: creating and removing buckets, uploading and downloading files, moving objects and syncing whole directories….
AWS Tutorials: Install and Configure AWS CLI
This guide covers installing AWS CLI version 2 on CentOS/RHEL, Ubuntu, other Linux distributions, macOS and Windows, then setting up credentials and checking that the CLI is…
AWS CLI Credentials Setup: Configure, Verify, and Secure Access
Learn how to configure AWS credentials with the AWS CLI, verify your identity, and understand where credentials are stored. This updated guide also compares profiles, environment variables, and role-based access.
EC2 Boot from EBS Explained: Architecture, Trade-offs, and an AWS CLI Workflow
Booting Amazon EC2 instances from Amazon EBS was a major shift from ephemeral root disks to persistent root volumes. This guide explains what changed, why it mattered, and how to use the model safely in modern operations.
AWS: Route53 a Complete Guide for Domain work
I’ll show console + CLI where useful and give a quick troubleshooting section at the end. 0) Prereqs 1) Create a public hosted zone for rajesh.com Console…
Ansible: Dynamic Ansible Inventory Script for AWS EC2 Public IPs
Below is a simple dynamic inventory Bash script for Ansible that queries all EC2 instances in your AWS account, gets their public IPs, and outputs a valid…
AWS Commands Line Reference: aws eks
Commands Here is the detailed breakdown for each AWS EKS command, including its use case, description, and examples. 1. aws eks associate-access-policy Use Case Associates an access…
AWS Tutorials: How to Shutdown (Stop / Start) Relational Database Service?
To shutdown (stop) and start a Relational Database Service (RDS) instance in AWS, you can follow these steps: Stopping an RDS Instance Starting an RDS Instance AWS…
AWS Tutorials: How to activate AWS EC2 Session Manager?
What is AWS Session Manager? AWS Session Manager is a managed service provided by Amazon Web Services (AWS) that enables secure and seamless access to instances in…
AWS Certified SysOps Administrator – Chapter – 2
Review Questions Which of the following is a dependency of the AWS CLI for Mac and Linux? C++ Python Java .NET SDK Which of the following AWS…
Setting and Configuring Amazon EKS using AWS Management Console and AWS CLI
Prerequisites AWS CLIA command line tool for working with AWS services, including Amazon EKS. This guide requires that you use version 2.1.26 or later or 1.19.7 or…
Steps to setup Static Website using AWS S3 with Godaddy
Step 1- Create a S3 Bucket with enable all public access. Step 2- Upload all static files using AWS console or AWS cli command line such as…
List of AWS regions and availability zones
List of AWS Regions This is complete list of AWS regions available currently. S.No Code Name 1 us-east-1 US East (N. Virginia) 2 us-west-2 US West (Oregon) 3…
AWS CLI: frequently asked questions
How do I configure the AWS CLI?
Run aws configure and enter your access key ID, secret access key, default region and output format. The values are saved in ~/.aws/credentials and ~/.aws/config, and you can add named profiles with aws configure --profile <name>.
How do I check which AWS account and identity the CLI is using?
Run aws sts get-caller-identity. It returns the account ID, user or role ARN and user ID for the credentials currently in use.
What output formats does the AWS CLI support?
AWS CLI v2 supports json, text, table and yaml output. Set a default in your config or override it per command with --output.
Can I stop an ElastiCache cluster with the AWS CLI like an RDS instance?
No. RDS instances can be stopped and started, but ElastiCache has no stop operation, so to save costs you scale it down or delete it with a final snapshot and restore it later.
