0% found this document useful (0 votes)
133 views2 pages

Aws Cheat Sheet

The AWS Cheat Sheet provides a comprehensive list of commands and descriptions for various AWS services, including Identity and Access Management (IAM), Elastic Compute Cloud (EC2), Elastic Kubernetes Service (EKS), Relational Database Service (RDS), and Simple Storage Service (S3). It also includes global flags for command execution and configuration commands for AWS CLI. This resource is aimed at helping users efficiently manage their AWS resources.

Uploaded by

dolanhoffman
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
133 views2 pages

Aws Cheat Sheet

The AWS Cheat Sheet provides a comprehensive list of commands and descriptions for various AWS services, including Identity and Access Management (IAM), Elastic Compute Cloud (EC2), Elastic Kubernetes Service (EKS), Relational Database Service (RDS), and Simple Storage Service (S3). It also includes global flags for command execution and configuration commands for AWS CLI. This resource is aimed at helping users efficiently manage their AWS resources.

Uploaded by

dolanhoffman
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

AWS Cheat Sheet

Installation Identity and Access Management (IAM)


Command Description
See https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
aws iam list-users List users
For autocompletion see https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-completion.html.
aws iam list-groups List groups
aws iam list-roles List roles
Global flags
aws iam list-policies List policies
Flag Description
aws iam create-user --user-name <name> Create a user
--profile <name> Run a command using the specified profile
aws iam create-group --group-name
--output <style> Format output as (json/text/table/yaml) Create a group
<name>
--help Show help
aws iam create-role --role-name <name>
Create a role
--endpoint-url <url> Override default API endpoint --assume-role-policy-document <policy>

--region Override default region aws iam create-policy --policy-name


Create a policy
<name> --policy-document <policy>
--version Show version of AWS CLI

Elastic Compute Cloud (EC2)


Configuration
Command Description
Command Description
aws ec2 describe-instances List instances
aws configure Configure AWS
aws ec2 run-instances --image-id <id>
aws configure sso Configure AWS IAM Identity Center credentials Create an instance
--instance-type <type>
aws configure list Show current configuration data aws ec2 terminate-instances
Terminate an instance
--instance-ids <id>
aws configure set <key> <value> Set a configuration value
aws ec2 start-instances --instance-ids
aws configure get <key> Show a configuration value Start an instance
<id>
aws ec2 stop-instances --instance-ids
Profiles <id>
Stop an instance

Command Description
aws configure --profile <name> Create a new profile Elastic Kubernetes Service (EKS)
aws configure list-profiles Show available profiles Command Description
aws eks list-clusters List clusters
Account information aws eks describe-cluster --name <name> Describe a cluster
Command Description aws eks create-cluster --name <name> Create a cluster
aws sts get-caller-identity Retrieve account information aws eks delete-cluster --name <name> Delete a cluster

© Nth Root Software Consultancy: PHP & DevOps consulting - Last updated on July 25, 2024 - Find more cheat sheets at nth-root.nl/en/cheat-sheets
Relational Database Service (RDS)
Command Description
aws rds describe-db-clusters List clusters
aws rds describe-db-instances List instances
aws rds create-db-cluster-snapshot Create a snapshot of a cluster

Simple Storage Service (S3)


Command Description
aws s3 ls List buckets
aws s3 ls s3://<bucket> List objects in a bucket
aws s3 mb s3://<bucket> Create a bucket
aws s3 rb s3://<bucket> Delete a bucket
aws s3 cp <src> <dest> Copy a file from/to S3
aws s3 rm s3://<bucket>/<object> Delete an object
aws s3 sync s3://bucket <dir> Sync a bucket to a local directory
aws s3 sync <dir> s3://bucket Sync a local directory to an S3 bucket

Other commands
Command Description
aws --version Show version
aws help Show help including all available commands
aws <command> help Show help for a specific command

© Nth Root Software Consultancy: PHP & DevOps consulting - Last updated on July 25, 2024 - Find more cheat sheets at nth-root.nl/en/cheat-sheets

You might also like