The Ultimate AWS CLI Cheatsheet for Developers

Sumanta Mukhopadhyay
2 min readFeb 6, 2023

--

Introduction:

AWS CLI is the command line interface for Amazon Web Services. It allows developers to interact with AWS services from the command line, making it easier to automate and manage AWS resources.

In this post, we’ll provide a comprehensive AWS CLI Cheatsheet to help developers work with AWS more effectively. Whether you’re a seasoned AWS user or just starting out, this cheatsheet will provide you with a quick reference to some of the most commonly used AWS CLI commands.

AWS EC2 Management:

AWS EC2 (Elastic Compute Cloud) is a scalable computing service. Here are some of the most important commands for managing EC2 instances:

  • aws ec2 describe-instances: List the available EC2 instances.
  • aws ec2 start-instances: Start an EC2 instance.
  • aws ec2 stop-instances: Stop an EC2 instance.
  • aws ec2 terminate-instances: Terminate an EC2 instance.
  • aws ec2 describe-instance-status: Display the status of an EC2 instance.

AWS S3 Management:

AWS S3 (Simple Storage Service) is a scalable storage service. Here are some of the most important commands for managing S3 buckets:

  • aws s3 ls: List the available S3 buckets.
  • aws s3 mb: Create a new S3 bucket.
  • aws s3 rb: Delete an S3 bucket.
  • aws s3 cp: Copy a file to or from an S3 bucket.
  • aws s3 sync: Synchronize the contents of a local directory with an S3 bucket.

AWS IAM Management:

AWS IAM (Identity and Access Management) is a security service. Here are some of the most important commands for managing IAM users:

  • aws iam list-users: List the available IAM users.
  • aws iam create-user: Create a new IAM user.
  • aws iam delete-user: Delete an IAM user.
  • aws iam create-access-key: Create an access key for an IAM user.
  • aws iam delete-access-key: Delete an access key for an IAM user.

AWS RDS Management:

AWS RDS (Relational Database Service) is a scalable database service. Here are some of the most important commands for managing RDS instances:

  • aws rds describe-db-instances: List the available RDS instances.
  • aws rds create-db-instance: Create a new RDS instance.
  • aws rds delete-db-instance: Delete an RDS instance.
  • aws rds modify-db-instance: Modify an RDS instance.
  • aws rds describe-db-instance-status: Display the status of an RDS instance.

Conclusion:

This AWS CLI Cheatsheet should serve as a valuable reference for developers working with AWS. The commands and tools mentioned in this cheatsheet are essential for managing and automating AWS resources from the command line. We hope that this cheatsheet will help you work with AWS more efficiently and effectively.

Don’t hesitate to refer to this cheatsheet whenever you need a quick reminder of a command or tool. And if you have any questions or suggestions, please let us know in the comments section. Happy AWS-ing!

--

--

Sumanta Mukhopadhyay
Sumanta Mukhopadhyay

No responses yet