ecs-cluster

azavea/ecs-cluster/aws

Terraform Module HCL AWS

A Terraform module to create an Amazon Web Services (AWS) EC2 Container Service (ECS) cluster.

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

terraform-aws-ecs-cluster ![CircleCI](https://circleci.com/gh/azavea/terraform-aws-ecs-cluster) A Terraform module to create an Amazon Web Services (AWS) EC2 Container Service (ECS) cluster. Table of Contents Usage Auto Scaling Variables Outputs Usage This module creates a security group that gets associated with the launch template for the ECS cluster Auto Scaling group. By default, the security group contains no rules. In order for network traffic to flow egress or ingress (including communication with ECS itself), you must associate all of the appropriate aws_security_group_rule resources with the container_instance_security_group_id module output. See below for an example. ``hcl data "template_file" "container_instance_cloud_config" { template = "${file("cloud-config/container-instance

Inputs (25)
NameTypeDescriptionDefault
vpc_idstring required
subnet_idslist(string) required
key_namestring required
cloud_config_contentstring required
cluster_namestring""
autoscaling_group_namestring""
cpu_credit_specificationstring"standard"
desired_capacitystring"1"
lookup_latest_amiboolfalse
instance_typestring"t2.micro"
cloud_config_content_typestring"text/cloud-config"
health_check_grace_periodstring"600"
environmentstring"Unknown"
ecs_for_ec2_service_role_namestring""
ami_ownerslist[ "self", "amazon", "aws-marketpla
enabled_metricslist(string)[ "GroupMinSize", "GroupMaxSize",
ami_idstring"ami-6944c513"
root_block_device_sizestring"8"
detailed_monitoringboolfalse
min_sizestring"1"
max_sizestring"1"
projectstring"Unknown"
security_group_namestring""
ecs_service_role_namestring""
Outputs (8)
container_instance_security_group_id
container_instance_ecs_for_ec2_service_role_name
ecs_service_role_name
container_instance_autoscaling_group_name
ecs_service_role_arn
container_instance_ecs_for_ec2_service_role_arn
id
name
Resources (7)
aws_autoscaling_groupaws_ecs_clusteraws_iam_instance_profileaws_iam_roleaws_iam_role_policy_attachmentaws_launch_templateaws_security_group
Details
FrameworkTerraform Module
LanguageHCL
Version3.0.0
Cloud AWS
★ Stars79
Forks68
Total downloads7.8k
Inputs25
Outputs8
Resources7
LicenseApache-2.0
Namespaceazavea
Updated