Deploy service with AWS Fargate using terraform
.
├── scripts # scripts to run terraform & tests
├── terraform
- aws # Terraform AWS infrastructure
├── tests # Infrastructure tests
├── Makefile # Set of tasks to execute
└── README.md # Documentation
- AWS Fargate
- AWS Application Load Balancer
The application load balancer should have an /service
endpoint and /__healthcheck__
health check endpoint.
If something is missing, feel free adding it to a solution.
The task objectives were as follows:
- Create infrastructure-as-code as per proposed Architecture
- Test Infrastructure (you can choose one or more test frameworks)
Makefile
has all the commands requred to run/test- Explain how to run and test in
README.md
The Terraform scripts has single file variables.tf to define all the variables used in the scripts. Only this file needs to be changed in order to make any configuration changes.
To Deploy the cluster with terraform, following are required.
Terraform v0.12.16 (Latest at this time)
cat .credentials
[default]
aws_access_key_id =
aws_secret_access_key =
shared_credentials_file = "<Provide full path to the .credentials file.>"
terraform plan -out infra.state
terraform apply
TODO: Document how to test the setup
Please do not make pull requests. Fork/Clone the repo instead and work on it.
There is no need to deploy infrastructure to AWS. Just make sure it fully valid terraform infrastructure-as-code setup and it has sufficient level of tests.