Skip to content

Instantly share code, notes, and snippets.

@AgilanVageesan
Created March 22, 2025 17:55
Show Gist options
  • Select an option

  • Save AgilanVageesan/d62b5cc86063aee8057d57339b5f9119 to your computer and use it in GitHub Desktop.

Select an option

Save AgilanVageesan/d62b5cc86063aee8057d57339b5f9119 to your computer and use it in GitHub Desktop.

๐Ÿ“Š AWS Security Cheat Sheet: Key Comparisons, Commands & Best Practices

๐Ÿ”น AWS KMS Limits & Capabilities

Feature AWS KMS
Max Keys Per Account 100,000
Max Key Policy Size 32 KB
Requests Per Second 5,500 for symmetric keys
Supports Envelope Encryption โœ… Yes
Automatic Key Rotation โœ… Yes
Regional Availability โœ… Yes

๐Ÿ”น AWS Secrets Manager vs. SSM Parameter Store

Feature AWS Secrets Manager AWS SSM Parameter Store
Best For Storing credentials, API keys Storing configs, environment variables
Automated Rotation โœ… Yes โŒ No
Encryption Support โœ… KMS-based โœ… Optional with KMS
Pricing Paid service Free for standard usage

๐Ÿ”น AWS Security Essential CLI Commands

Command Description
aws kms encrypt Encrypts data using a KMS key.
aws kms decrypt Decrypts previously encrypted data.
aws kms create-key Creates a new KMS key.
aws secretsmanager create-secret Stores a secret securely.
aws ssm put-parameter Adds a new parameter to Parameter Store.
aws cloudtrail describe-trails Lists all CloudTrail logs.
aws cloudwatch put-metric-alarm Creates a security alarm in CloudWatch.

๐Ÿ”น AWS CodeBuild Security Best Practices

Practice Description
Use IAM Roles Ensure builds have least privilege permissions.
Enable VPC Isolation Run builds in a private VPC for security.
Encrypt Build Artifacts Use S3 encryption for storing build outputs.
Monitor with CloudWatch Set up logging and monitoring for builds.

๐Ÿ”น AWS Nitro Enclaves: Secure Compute Isolation

Feature AWS Nitro Enclaves
Data Isolation โœ… Yes
Access to AWS Services โŒ No (fully isolated)
Use Case Secure processing of sensitive data
Integration with KMS โœ… Yes

๐Ÿ’ก AWS Security tools provide bank-grade encryption, access control, and monitoringโ€”choosing the right combination ensures a secure cloud environment! ๐Ÿš€

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment