Skip to content

Latest commit

 

History

History
108 lines (68 loc) · 2.03 KB

README.md

File metadata and controls

108 lines (68 loc) · 2.03 KB

README

Demonstrates using awscli to query resources in an AWS account.

Powershell examples can be found here

TODO:

  • pulling cloud watch metrics.
  • Sorting by columns
  • Create a docker container with awscli testbed inside of it.
# turn off the pager (NOTE: if you need help to work then it needs to be unset as this errors awscli)
export AWS_PAGER=   

# helpful gui for finding parameters
export AWS_CLI_AUTO_PROMPT=on-partial
# then use aws
aws 
# or 
aws --cli-auto-prompt           

Environment

A lot of the examples are using AWS_PROFILE and AWS_REGION.

cp ./.env.template ./.env
cat ./.env
nano ./.env
. ./.env     
# list available profiles
aws configure list-profiles   

# quick test
aws --profile [profile] s3 ls

Troubleshooting

# add --debug flag
aws --profile [profile] --debug s3 ls

Sts

You can use STS to work out your assumed role when trying to debug why you might be getting an Access Denied style issue.

aws sts get-caller-identity

ECR

Elastic Container Registry ECR.md

S3

S3 S3.md

EC2

Elastic Compute EC2.md

ECS

Elastic Container Services ECS.md

Batch

AWS Batch BATCH.md

VPC

VPC VPC.md

SSM

SSM SSM.md

Route53

Route 53 Route53.md

Lambda

Lambda LAMBDA.md

API Gateway

API Gateway APIGATEWAY.md

Cloud Formation

Cloud Formation CLOUD_FORMATION.md

Resources

  • AWS CLI with jq and Bash here
  • AWS-cli here
  • Filtering AWS CLI output here
  • Troubleshooting AWS CLI errors here