Skip to content

AWS

Install

https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html

Init

bash
aws configure

Services

ACM

For certs validation: https://docs.aws.amazon.com/acm/latest/userguide/setup-caa.html

bash
CAA example.com 0 issue amazon.com
CAA example.com 0 issuewild amazon.com

IAM

Cloudwatch

sql
fields @timestamp, @message |
filter strcontains(@message, "error") |
sort @timestamp desc |
limit 100

Get stats

sql
fields @message
| filter strcontains(@message, "lon")
| parse @message 'lon' as @lon |
| stats count(@lon) as QUERY_COUNT

EC2

EMR

Fargate

Lambda

S3

bash
# upload to S3
aws s3 cp LOCAL s3://REMOTE_PATH

# download from s3
aws s3 cp s3://REMOTE_PATH output --recursive

## with wildcard
aws s3 cp s3://data/ . --recursive --exclude "*" --include "2016-08*"

# sync
aws s3 sync s3://S3PATH/ . --dryrun

# interacting with a public bucket
aws s3 ls s3://overturemaps-us-west-2/release/2023-10-19-alpha.0/theme=places/type=place/ --no-sign-request

Maintenance

Pricing

Security

  • Prowler - Prowler is an Open Source security tool to perform AWS security best practices assessments, audits, incident response, continuous monitoring, hardening and forensics readiness. It contains more than 200 controls covering CIS, PCI-DSS, ISO27001, GDPR, HIPAA, FFIEC, SOC2, AWS FTR, ENS and custom security frameworks.

Services uptime

Resources