Best practices for AWS

Proprietary

Securely operate on Amazon Web Services.

org.openrewrite.terraform.aws.AWSBestPractices
mod run . --recipe=org.openrewrite.terraform.aws.AWSBestPractices

Install 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.

  1. Encrypt EBS volumes
  2. Encrypt EBS snapshots
  3. Ensure AWS Elasticsearch domain encryption for data at rest is enabled
  4. Ensure AWS Elasticsearch has node-to-node encryption enabled
  5. Ensure AWS CMK rotation is enabled
  6. Encrypt EBS volume launch configurations
  7. Ensure IAM password policy expires passwords within 90 days or less
  8. Ensure AWS IAM password policy has a minimum of 14 characters
  9. Ensure IAM password policy requires at least one lowercase letter
  10. Ensure IAM password policy requires at least one number
  11. Ensure IAM password policy prevents password reuse
  12. Ensure IAM password policy requires at least one symbol
  13. Ensure IAM password policy requires at least one uppercase letter
  14. Encrypt RDS clusters
  15. Ensure AWS RDS database instance is not publicly accessible
  16. Ensure data stored in an S3 bucket is securely encrypted at rest
  17. Ensure AWS S3 object versioning is enabled
  18. Enable point-in-time recovery for DynamoDB
  19. Encrypt ElastiCache Redis at rest
  20. Encrypt ElastiCache Redis in transit
  21. Scan images pushed to ECR
  22. Use HTTPS for Cloudfront distribution
  23. Ensure CloudTrail log file validation is enabled
  24. Ensure Amazon EKS control plane logging enabled for all log types
  25. Ensure AWS EKS cluster endpoint access is publicly disabled
  26. Ensure AWS EFS with encryption for data at rest is enabled
  27. Ensure Kinesis Stream is securely encrypted
  28. Encrypt Neptune storage
  29. Encrypt DAX storage at rest
  30. Ensure AWS Lambda functions have tracing enabled
  31. Make ECR tags immutable
  32. Encrypt Redshift storage at rest
  33. Encrypt DocumentDB storage
  34. Disable Instance Metadata Service version 1
  35. Ensure AWS Elasticsearch domains have EnforceHTTPS enabled
  36. Encrypt Aurora clusters
  37. Encrypt EFS Volumes in ECS Task Definitions in transit
  38. Ensure AWS Lambda function is configured for function-level concurrent execution limit
  39. Ensure enhanced monitoring for Amazon RDS instances is enabled
  40. Enable API gateway caching
  41. Ensure detailed monitoring for EC2 instances is enabled
  42. Ensure respective logs of Amazon RDS are enabled
  43. Ensure VPC subnets do not assign public IP by default
  44. Ensure EC2 is EBS optimized
  45. Ensure ECR repositories are encrypted
  46. Encrypt CodeBuild projects
  47. Ensure RDS instances have Multi-AZ enabled
  48. Ensure RDS database has IAM authentication enabled