This repository contains Terraform files to deploy an AWS ECS cluster. The ECS cluster orchestrates containerized applications, offering scalability and ease of management.
Before executing the Terraform files, ensure you have:
- An AWS account
- AWS CLI configured with appropriate permissions
- Terraform installed locally
-
Clone the Repository:
git clone https://github.com/crc-aws/ecs-app.git cd your-repo
-
Set up AWS Credentials: Ensure your AWS credentials are properly configured. You can use
aws configure
or set environment variables (AWS_ACCESS_KEY_ID
,AWS_SECRET_ACCESS_KEY
,AWS_REGION
). -
Update Configuration: Modify the
main.tf
file:- Enter your AWS Account ID in the execution role ARN.
-
Deploy the ECS Cluster: Execute the following commands:
terraform init terraform apply
provider.tf
: Holds the Terraform setup for configuring the Terraform provider.main.tf
: Manages the Terraform configuration to establish an ECS cluster.ec2.tf
: Governs the Terraform configuration for creating EC2 instances.vpc.tf
: Handles the Terraform setup for establishing the VPC.variables.tf
: Defines variables utilized throughout the Terraform configuration.
Remember to destroy the resources when they are no longer needed:
terraform destroy
Contributions are welcome! Feel free to submit issues or pull requests.
Special thanks to Sumeet Ninawe's article for inspiration. You can also explore the original repository here
Feel free to tailor this template further based on specifics about your project, including adding sections about usage, troubleshooting, or any other relevant information that might assist users in understanding and utilizing your repository.