This example shows the usages of the ECS cluster. The example will deploy one container running web application in the cluster. The example shows the following features:
- ECS cluster module usages
- Running one simple service
- AWS verified VPC module
- Service based on Philips ECS service module including centralized logging and basic monitoring.
Terraform is managed via the tool tfenv
. Ensure you have installed tfenv. And install via tfenv the required terraform version as listed in .terraform-version
Just run the default terraform commands.
terraform init
terraform plan
terraform apply
Once done you can test the service via the URL on the console. It can take a few minutes before the service is available
terraform destroy
main.tf
: ECS clustervpc.tf
: VPC network layerservice.tf
: ECS service (container)keys.tf
: SSH key creationproviders.tf
: Required providersmonitoring.tf
: Log group, topics