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
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
# add --debug flag
aws --profile [profile] --debug s3 ls
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
Elastic Container Registry ECR.md
S3 S3.md
Elastic Compute EC2.md
Elastic Container Services ECS.md
AWS Batch BATCH.md
VPC VPC.md
SSM SSM.md
Route 53 Route53.md
Lambda LAMBDA.md
API Gateway APIGATEWAY.md
Cloud Formation CLOUD_FORMATION.md