Awesome
modernisation-platform-terraform-ecs-cluster
Modules
This repository provides 3 Terraform Modules:
terraform-docs
for the modules can be found in their respective readme's.
The aim is to provide a reusable framework to deploy ECS and it's associated services in a way that integrates well with the rest of the modernisation platform environments.
Whilst these modules are flexible, they have been designed to work together. The use case behind them is that the services/tasks/containers (using the service
module) can be deployed independently of the cluster. This means that the ECS Cluster (deployed using the cluster
module) can be provisioned at environment build time and services/tasks/containers can be provisioned in a seperate process. Importantly, this unlinks the state of the two so that services/tasks/containers can be updated without the need to touch the platform or environment.
Cluster Module
This module is used to deploy an ECS cluster with fargate support.
Container Module
This module creates a container definition, allowing it to be managed in HCL, but outputs as a JSON object or a JSON object in a list.
Service Module
This module is used to deploy an ECS Service and/or task definitions onto an ECS Cluster.
Examples
For examples of the modules individually, please see the readme's linked in section 1
Looking for issues?
If you're looking to raise an issue with this module, please create a new issue in the issue tracker..