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

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…

Read More

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…

Read More

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…

Read More

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….

Read More

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…

Read More

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.

Read More

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.

Read More

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…

Read More

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…

Read More

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…

Read More

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…

Read More

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…

Read More

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…

Read More

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…

Read More

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…

Read More

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…

Read More

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.