Collection of Terraform configs for AWS that I've built and want to share. Some from work, some from personal projects, some just things I figured out and thought might be useful.
Terraform configurations I've created while working on AWS infrastructure. Not claiming these are perfect or follow every best practice - they're just things that worked for me and might help you out.
.
├── modules/ # Reusable modules
├── examples/ # Full examples
└── docs/ # Extra docs if needed
Stuff I'll add as I build it:
- VPC and networking configs
- ECS/Fargate deployments
- RDS setups
- S3 bucket configurations
- Security groups
- IAM roles and policies
- Whatever else I end up working on
- Terraform (recent version)
- AWS CLI and credentials
- Know how to use both
Check the README in each module/example folder. Basic pattern:
module "example" {
source = "github.com/yourusername/repo-name//modules/module-name"
# Add your variables
vpc_id = "vpc-xxxxx"
environment = "dev"
}Read the code, adjust for your needs, test it before using in prod.
I run terraform validate and terraform fmt on stuff before committing. You should test everything in your own environment.
Found a bug or have something better? Open an issue or PR.
- Don't commit credentials or secrets
- Use Secrets Manager or Parameter Store for sensitive stuff
- Review IAM permissions before using them
- Encrypt things where it makes sense
Use at your own risk. Test everything in your own environment first. These work for me but your mileage may vary.
MIT License - see LICENSE file.
Cloud SRE who's been doing infrastructure stuff for a while. Sharing things that might be useful.
TL;DR: Terraform configs for AWS. Use them, modify them, break them. Just test before you deploy to prod.