Terraform configuration for deploying containerized applications to AWS ECS (Elastic Container Service). This infrastructure-as-code solution helps automate the provisioning of AWS resources for container orchestration.
- Automated AWS ECS Cluster creation
- Fargate launch type support
- Load balancer configuration
- Auto-scaling capabilities
- Security group management
- VPC and networking setup
- CloudWatch logs integration
- Terraform installed (version 1.0+)
- AWS CLI configured with appropriate credentials
- An AWS account with permissions to create ECS resources
- Docker for container image building (optional)
main.tf- Main Terraform configuration file for ECS resourcesprovider.tf- AWS provider configurationvariables.tf- Input variables for the Terraform configuration
- Clone this repository
- Initialize Terraform:
terraform init
- Review the planned changes:
terraform plan
- Apply the configuration:
terraform apply
To destroy all resources created by this Terraform configuration:
terraform destroyMake sure to review and update variable values in variables.tf or through a .tfvars file before applying changes to your infrastructure.
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.