All Useful AWS Commands

AWS (Amazon Web Services) offers a vast array of services, each with its own set of commands. Below is a list of commonly used AWS CLI (Command Line Interface) commands grouped by major service categories.

General AWS CLI Commands
aws configure: Configure the AWS CLI with your credentials.
aws help: Display help information about the AWS CLI.
aws <service> help: Display help information for a specific AWS service.

AWS EC2 (Elastic Compute Cloud)

aws ec2 describe-instances: List information about your EC2 instances.
aws ec2 run-instances: Launch an EC2 instance.
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-images: List information about available Amazon Machine Images (AMIs).

AWS S3 (Simple Storage Service)

aws s3 ls: List S3 buckets.
aws s3 mb s3://bucket-name: Create a new S3 bucket.
aws s3 rb s3://bucket-name: Remove an S3 bucket.
aws s3 cp file.txt s3://bucket-name/: Upload a file to an S3 bucket.
aws s3 sync local-folder/ s3://bucket-name/: Sync a local folder with an S3 bucket.
aws s3 rm s3://bucket-name/file.txt: Delete a file from an S3 bucket.

AWS IAM (Identity and Access Management)

aws iam list-users: List IAM users.
aws iam create-user --user-name username: Create a new IAM user.
aws iam delete-user --user-name username: Delete an IAM user.
aws iam list-roles: List IAM roles.
aws iam create-role --role-name role-name --assume-role-policy-document file://policy.json: Create a new IAM role.

AWS RDS (Relational Database Service)

aws rds describe-db-instances: List RDS instances.
aws rds create-db-instance: Create a new RDS instance.
aws rds delete-db-instance: Delete an RDS instance.
aws rds start-db-instance: Start an RDS instance.
aws rds stop-db-instance: Stop an RDS instance.

AWS Lambda

aws lambda list-functions: List Lambda functions.
aws lambda create-function: Create a new Lambda function.
aws lambda update-function-code: Update the code of an existing Lambda function.
aws lambda delete-function: Delete a Lambda function.
aws lambda invoke --function-name function-name out.json: Invoke a Lambda function.

Thank You
Read More DevOps Tutorials: Devopsden
Heroku Vs AWS


Discover more from Coursity

Subscribe to get the latest posts sent to your email.

Leave a Comment

Your email address will not be published. Required fields are marked *

Discover more from Coursity

Subscribe now to keep reading and get access to the full archive.

Continue reading

Scroll to Top
Android app development. Unn cut off marks for jamb www. Creating an effective work from home routine : productivity tips for remote work.