This is a Terraform boilerplate for setting up an AWS Fargate cluster with a subdomain configuration in Route53. The purpose of this project is to provide a starting point for anyone looking to launch a Fargate service with subdomains.
- Fargate cluster
- ECR
- Task definition
- Service
- Load balancer
- Subdomain configuration in Route53
- Etc The configuration is designed to be easily customizable and extensible, allowing you to build on top of it to fit your specific needs.
- AWS Account
- Terraform installed
- AWS CLI
-
Clone the repository:
git clone https://github.com/code-xhyun/serverless-nestjs-boilerplate.git
-
Navigate to the project directory:
cd fargate
-
Initialize terraform
terraform init
-
Edit the var.tfvars file with your desired values.
-
Verification of the configuration
terraform plan -var-file=var.tfvars
-
Deploy
terraform apply -var-file=var.tfvars
-
Destroy
terraform destroy -var-file=var.tfvars
If you'd like to contribute to this project, please fork the repository and make the desired changes. Then, submit a pull request for review.