Skip to content

Instantly share code, notes, and snippets.

@stevermeister
Created July 9, 2025 07:52
Show Gist options
  • Save stevermeister/c3097459bab0d75e45f279d8c36003b5 to your computer and use it in GitHub Desktop.
Save stevermeister/c3097459bab0d75e45f279d8c36003b5 to your computer and use it in GitHub Desktop.
use AI for quick AWS Cloud audits πŸš€
# Main
aws sts get-caller-identity > identity.json
aws organizations describe-organization > org.json 2>/dev/null || echo "No org access"
# EC2
aws ec2 describe-instances --output json > ec2-instances.json
aws ec2 describe-security-groups --output json > security-groups.json
aws ec2 describe-vpcs --output json > vpcs.json
# RDS
aws rds describe-db-instances --output json > rds-instances.json
aws rds describe-db-clusters --output json > rds-clusters.json
# S3
aws s3api list-buckets --output json > s3-buckets.json
aws s3api get-bucket-encryption --bucket BUCKET_NAME --output json > s3-encryption.json
# IAM
aws iam list-users --output json > iam-users.json
aws iam list-roles --output json > iam-roles.json
aws iam list-policies --scope Local --output json > iam-policies.json
# CloudFormation
aws cloudformation list-stacks --output json > cloudformation-stacks.json
# Route53
aws route53 list-hosted-zones --output json > route53-zones.json
# OpenSearch
aws opensearch list-domain-names --output json > opensearch-domains.json
# ElastiCache
aws elasticache describe-cache-clusters --output json > elasticache-clusters.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment