ecs-cluster

devops-workflow/ecs-cluster/aws

Terraform Module HCL AWS

Terraform module which creates AWS ECS resources

Install
module "ecs-cluster" {
source = "devops-workflow/ecs-cluster/aws"
version = "6.1.0"
}
plain text: /constructs/tfmod-devops-workflow-ecs-cluster-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

terraform-aws-ecs-cluster ![CircleCI](https://circleci.com/gh/devops-workflow/terraform-aws-ecs-cluster/tree/master) ![Github release](https://github.com/devops-workflow/terraform-aws-ecs-cluster/releases) A terraform module to provide ECS clusters in AWS. This Module currently supports Terraform 0.10.x, but does not require it. If you use tfenv, this module contains a .terraform-version file which matches the version of Terraform we currently use to test with. Module Input Variables Required - name - ECS cluster name - key_name - An EC2 key pair name - subnet_id - A list of subnet IDs - vpc_id - The VPC ID to place the cluster in Optional NOTE About User Data: The user_data parameter overwrites the user_data template used by this module, this will break some of the module features (e.g. d

Inputs (40)
NameTypeDescriptionDefault
subnet_idanyThe AWS Subnet ID in which you want to delpoy your instances required
key_nameanySSH key name in your AWS account for AWS instances. required
vpc_idanyThe AWS VPC ID which you want to deploy your instances required
environmentanyEnvironment (ex: `dev`, `qa`, `stage`, `prod`). (Second or top level namespace. required
nameanyBase name for resources required
security_group_idsanyA list of Security group IDs to apply to the launch configuration[]
serversanyThe number of servers to launch."1"
user_dataany""
dockerhub_emailanyEmail Address used to authenticate to dockerhub. http://docs.aws.amazon.com/Amaz""
enable_agentsanyEnable Consul Agent and Registrator tasks on each ECS Instancefalse
extra_tagsany[]
name_prefixany""
delimiteranyDelimiter to be used between `name`, `namespaces`, `attributes`, etc."-"
tagsanyA map of additional tags{}
associate_public_ip_addressanyfalse
tagNameanyName tag for the servers"ECS Node"
tags_aganyAdditional tags for Autoscaling group. A list of tag blocks. Each element is a m[]
registrator_imageanyImage to use when deploying registrator agent, defaults to the gliderlabs regist"gliderlabs/registrator:latest"
organizationanyOrganization name (Top level namespace).""
additional_user_data_scriptany""
amiany""
docker_storage_sizeanyEBS Volume size in Gib that the ECS Instance uses for Docker images and metadata"22"
custom_iam_policyanyCustom IAM policy (JSON). If set will overwrite the default one""
min_serversanyMinimum number of ECS servers to run.1
termination_policiesanyA list of policies to decide how the instances in the auto scale group should be[ "OldestLaunchConfiguration", "Clos
Outputs (6)
cluster_security_group_id — ECS Cluster Security Group ID
cluster_size — Cluster size. Number of EC2 instances desired
autoscaling_group — Map of ASG info
iam_ecs_role — IAM role name applied to ECS EC2 instances
cluster_id — ECS Cluster ID
cluster_name — ECS Cluster Name
Resources (6)
aws_autoscaling_lifecycle_hookaws_ecs_clusteraws_iam_instance_profileaws_iam_policyaws_iam_policy_attachmentaws_iam_role
Details
FrameworkTerraform Module
LanguageHCL
Version6.1.0
Cloud AWS
★ Stars1
Forks5
Total downloads9.3k
Inputs40
Outputs6
Resources6
Examples3
LicenseMIT
Namespacedevops-workflow
Updated