Cheatsheets

Personal collection of cheatsheets.

AWS


Amazon Web Services (AWS) provides on-demand cloud computing platforms and APIs to individuals, companies, and governments, on a metered, pay-as-you-go basis.

Index

Install

Install the aws command-line tool.

General

Check version.

aws --version

Configure.

aws configure

Login with SSO.

aws configure sso
aws sso login

List services.

aws list-services

Cognito

List user pools.

aws cognito-idp list-user-pools --max-results 10

DynamoDB

Scan table.

aws dynamodb scan --table-name "<table>"

Get item.

aws dynamodb get-item --table-name "<table>" --key '{\"<key>\": {\"S\": \"<value>\"}}'

Delete item.

aws dynamodb delete-item --table-name "<table>" --key '{\"<key>\": {\"S\": \"<value>\"}}'

SES

Send email command.

{
	"Content": {
		"Simple": {
			"Subject": {
				"Charset": "utf-8",
				"Data": "The subject"
			},
			"Body": {
				"Text": {
					"Charset": "utf-8",
					"Data": "The body"
				}
			}
		}
	},
	"FromEmailAddress": "from@email.com",
	"Destination": {
		"ToAddresses": [ "to@email.com" ]
	}
}

S3

List buckets.

aws s3 ls