ecs-cluster

aws-ia/ecs-cluster/aws

Terraform Module HCL AWS ✓ Verified

AWS ECS

Install
module "ecs-cluster" {
source = "aws-ia/ecs-cluster/aws"
version = "0.0.1"
}
⭐ Source on GitHub 📦 Registry page
README

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

Inputs (8)
NameTypeDescriptionDefault
launch_template_idstringID of the launch template for use by AutoScalingGroup to create new instances required
launch_configurationstringName of the launch configuration for use by AutoScalingGroup to create new insta required
regionstringthe name of the region you wish to deploy into"us-east-1"
namestringName given resources"aws-ia-ecs"
asg_max_sizenumberMaximum allowed nodes in the cluster3
tagsmap(string)A map of tags to add to all resources.{ "ModuleName": "terraform-ecs-cluster
vpc_subnet_idslistList of VPC subnets to put instances in[]
create_service_roleboolVariable to decide whether IAM Service linked role should be created for ECStrue
Outputs (7)
ecs_capacity_provider_arn — The ARN of the ECS cluster's capacity provider
ecs_capacity_provider_id — The ID of the ECS cluster's capacity provider
ecs_cluster_arn — The ARN of the ECS cluster
ecs_cluster_id — The ID of the ECS cluster
kms_arn — The ARN of the KMS key created for use with ECS cluster related resources
kms_id — The ID of the KMS key created for use with ECS cluster related resources
ecs_cloudwatch_group_arn — The ARN of the Cloudwatch LogGroup created for use with ECS cluster
Resources (6)
aws_autoscaling_groupaws_cloudwatch_log_groupaws_ecs_capacity_provideraws_ecs_clusteraws_iam_service_linked_roleaws_kms_key
Details
FrameworkTerraform Module
LanguageHCL
Version0.0.1
Cloud AWS
★ Stars6
Forks8
Total downloads5.3k
Inputs8
Outputs7
Resources6
LicenseApache-2.0
Namespaceaws-ia
Updated