Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Create reusable Terraform modules with proper input/output variables, remote state, and infrastructure best practices.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/aws-modules.md
1# AWS Terraform Module Patterns23## VPC Module45- VPC with public/private subnets6- Internet Gateway and NAT Gateways7- Route tables and associations8- Network ACLs9- VPC Flow Logs1011## EKS Module1213- EKS cluster with managed node groups14- IRSA (IAM Roles for Service Accounts)15- Cluster autoscaler16- VPC CNI configuration17- Cluster logging1819## RDS Module2021- RDS instance or cluster22- Automated backups23- Read replicas24- Parameter groups25- Subnet groups26- Security groups2728## S3 Module2930- S3 bucket with versioning31- Encryption at rest32- Bucket policies33- Lifecycle rules34- Replication configuration3536## ALB Module3738- Application Load Balancer39- Target groups40- Listener rules41- SSL/TLS certificates42- Access logs4344## Lambda Module4546- Lambda function47- IAM execution role48- CloudWatch Logs49- Environment variables50- VPC configuration (optional)5152## Security Group Module5354- Reusable security group rules55- Ingress/egress rules56- Dynamic rule creation57- Rule descriptions5859## Best Practices60611. Use AWS provider version `~> 5.0`622. Enable encryption by default633. Use least-privilege IAM644. Tag all resources consistently655. Enable logging and monitoring666. Use KMS for encryption677. Implement backup strategies688. Use PrivateLink when possible699. Enable GuardDuty/SecurityHub7010. Follow AWS Well-Architected Framework71