Browse the Repo

file-type-icon.circleci
file-type-icon_docs
file-type-iconexamples
file-type-iconmodules
file-type-iconecs-cluster
file-type-iconREADME.md
file-type-iconmain.tf
file-type-iconoutputs.tf
file-type-iconroll-out-ecs-cluster-update.py
file-type-iconvars.tf
file-type-iconecs-daemon-service
file-type-iconecs-deploy-check-binaries
file-type-iconecs-deploy
file-type-iconecs-fargate
file-type-iconecs-scripts
file-type-iconecs-service-with-alb
file-type-iconecs-service-with-discovery
file-type-iconecs-service
file-type-icontest
file-type-icon.gitignore
file-type-icon.pre-commit-config.yaml
file-type-iconCODEOWNERS
file-type-iconLICENSE.txt
file-type-iconREADME.adoc
file-type-iconcore-concepts.md
file-type-iconsetup.cfg

Browse the Repo

file-type-icon.circleci
file-type-icon_docs
file-type-iconexamples
file-type-iconmodules
file-type-iconecs-cluster
file-type-iconREADME.md
file-type-iconmain.tf
file-type-iconoutputs.tf
file-type-iconroll-out-ecs-cluster-update.py
file-type-iconvars.tf
file-type-iconecs-daemon-service
file-type-iconecs-deploy-check-binaries
file-type-iconecs-deploy
file-type-iconecs-fargate
file-type-iconecs-scripts
file-type-iconecs-service-with-alb
file-type-iconecs-service-with-discovery
file-type-iconecs-service
file-type-icontest
file-type-icon.gitignore
file-type-icon.pre-commit-config.yaml
file-type-iconCODEOWNERS
file-type-iconLICENSE.txt
file-type-iconREADME.adoc
file-type-iconcore-concepts.md
file-type-iconsetup.cfg
ECS Service

ECS Service

Deploy an ECS service with zero-downtime, rolling deployment, IAM Role, auto scaling, and more.

Code Preview

Preview the Code

mobile file icon

vars.tf

down
  • # ---------------------------------------------------------------------------------------------------------------------
  • # MODULE PARAMETERS
  • # These variables are expected to be passed in by the operator when calling this terraform module.
  • # ---------------------------------------------------------------------------------------------------------------------
  • # General ECS Cluster properties
  • variable "cluster_name" {
  • description = "The name of the ECS cluster (e.g. ecs-prod). This is used to namespace all the resources created by these templates."
  • type = string
  • }
  • variable "cluster_min_size" {
  • description = "The minimum number of EC2 Instances launchable for this ECS Cluster. Useful for auto-scaling limits."
  • type = number
  • }
  • variable "cluster_max_size" {
  • description = "The maximum number of EC2 Instances that must be running for this ECS Cluster. We recommend making this twice var.cluster_min_size, even if you don't plan on scaling the cluster up and down, as the extra capacity will be used to deploy udpates to the cluster."
  • type = number
  • }
  • # Properties of the ECS Cluster's EC2 Instances
  • variable "cluster_instance_ami" {
  • description = "The AMI to run on each of the ECS Cluster's EC2 Instances."
  • type = string

Questions? Ask away.

We're here to talk about our services, answer any questions, give advice, or just to chat.

Ready to hand off the Gruntwork?