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
- iam-policy-json-to-terraform - Small tool to convert an IAM Policy in JSON format into a Terraform aws_iam_policy_document.
- AWS managed policies
- AWS Service Principals
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
- Spark with correct aws jars version
- Amazon EMR 6.x Release Versions - Lists application versions, components, and release notes for each Amazon EMR release in the 6.x series.
Fargate
Lambda
- AWS Lambda quotas - Maximum sizes, limits, and quotas for AWS Lambda functions and related resources.
- download_all_lambda_function
- Lambda Cold Starts analysis - Visualize 10 Cold Starts for each runtime, updated daily.
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
- AWS Fargate ECS Pricing Calculator
- AWS Pricing Calculator
- AWS Savings Plan Calculator
- EC2Instances.info
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.