Best practices for AWS
ProprietarySecurely operate on Amazon Web Services.
org. openrewrite. terraform. aws. AWSBestPracticesmod run . --recipe= org. openrewrite. terraform. aws. AWSBestPracticesInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.
- Encrypt EBS volumes
- Encrypt EBS snapshots
- Ensure AWS Elasticsearch domain encryption for data at rest is enabled
- Ensure AWS Elasticsearch has node-to-node encryption enabled
- Ensure AWS CMK rotation is enabled
- Encrypt EBS volume launch configurations
- Ensure IAM password policy expires passwords within 90 days or less
- Ensure AWS IAM password policy has a minimum of 14 characters
- Ensure IAM password policy requires at least one lowercase letter
- Ensure IAM password policy requires at least one number
- Ensure IAM password policy prevents password reuse
- Ensure IAM password policy requires at least one symbol
- Ensure IAM password policy requires at least one uppercase letter
- Encrypt RDS clusters
- Ensure AWS RDS database instance is not publicly accessible
- Ensure data stored in an S3 bucket is securely encrypted at rest
- Ensure AWS S3 object versioning is enabled
- Enable point-in-time recovery for DynamoDB
- Encrypt ElastiCache Redis at rest
- Encrypt ElastiCache Redis in transit
- Scan images pushed to ECR
- Use HTTPS for Cloudfront distribution
- Ensure CloudTrail log file validation is enabled
- Ensure Amazon EKS control plane logging enabled for all log types
- Ensure AWS EKS cluster endpoint access is publicly disabled
- Ensure AWS EFS with encryption for data at rest is enabled
- Ensure Kinesis Stream is securely encrypted
- Encrypt Neptune storage
- Encrypt DAX storage at rest
- Ensure AWS Lambda functions have tracing enabled
- Make ECR tags immutable
- Encrypt Redshift storage at rest
- Encrypt DocumentDB storage
- Disable Instance Metadata Service version 1
- Ensure AWS Elasticsearch domains have
EnforceHTTPSenabled - Encrypt Aurora clusters
- Encrypt EFS Volumes in ECS Task Definitions in transit
- Ensure AWS Lambda function is configured for function-level concurrent execution limit
- Ensure enhanced monitoring for Amazon RDS instances is enabled
- Enable API gateway caching
- Ensure detailed monitoring for EC2 instances is enabled
- Ensure respective logs of Amazon RDS are enabled
- Ensure VPC subnets do not assign public IP by default
- Ensure EC2 is EBS optimized
- Ensure ECR repositories are encrypted
- Encrypt CodeBuild projects
- Ensure RDS instances have Multi-AZ enabled
- Ensure RDS database has IAM authentication enabled