ecs-cluster
aws-ia/ecs-cluster/aws
AWS ECS
Terraform Amazon ECS on AutoScaling Group Module Authors: Praveen Kumar Jeyarajan (pjeyaraj@amazon.com), Viyoma Sachdeva (viyoms@amazon.com) and Neel Shah (shahneel@amazon.com) This Terraform module deploys Amazon Elastic Container Service (Amazon ECS) backed by AutoScaling Group (ASG). It deploys a AutoScaling Group created from the Launch Template the user provides. It then deploys a Amazon ECS cluster backed by the ASG, created before, as capacity provider. Users can create the necessary resources for the Launch Template as needed like the VPC, subnets, security group, etc. The module uses the Launch Template ID to create the ASG for use by the Amazon ECS. Deployment steps Manage state remotely using Terrafrom Cloud 1. Install Terraform. For instructions and a video tutorial, see Instal
| Name | Type | Description | Default |
|---|---|---|---|
| launch_template_id | string | ID of the launch template for use by AutoScalingGroup to create new instances | required |
| launch_configuration | string | Name of the launch configuration for use by AutoScalingGroup to create new insta | required |
| region | string | the name of the region you wish to deploy into | "us-east-1" |
| name | string | Name given resources | "aws-ia-ecs" |
| asg_max_size | number | Maximum allowed nodes in the cluster | 3 |
| tags | map(string) | A map of tags to add to all resources. | {
"ModuleName": "terraform-ecs-cluster |
| vpc_subnet_ids | list | List of VPC subnets to put instances in | [] |
| create_service_role | bool | Variable to decide whether IAM Service linked role should be created for ECS | true |
ecs_capacity_provider_arn — The ARN of the ECS cluster's capacity providerecs_capacity_provider_id — The ID of the ECS cluster's capacity providerecs_cluster_arn — The ARN of the ECS clusterecs_cluster_id — The ID of the ECS clusterkms_arn — The ARN of the KMS key created for use with ECS cluster related resourceskms_id — The ID of the KMS key created for use with ECS cluster related resourcesecs_cloudwatch_group_arn — The ARN of the Cloudwatch LogGroup created for use with ECS cluster