๐ 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! ๐