A modified version of https://github.com/springload/terraform-aws-ecs-cluster
module "ecs-cluster" {
source = "github.com/globeandmail/aws-ecs-cluster?ref=1.0"
cluster_name = my-ecs-cluster
instance_type = var.instance_type
subnet_ids = var.subnet_ids
security_group_ids = var.security_group_ids
vpc_id = var.vpc_id
}
Name |
Description |
Type |
Default |
Required |
cluster_name |
Name of the ECS cluster |
string |
n/a |
yes |
ami |
Name of the AMI image to use |
string |
"amzn2-ami-ecs-hvm-*-x86_64-ebs" |
no |
cpu_unlimited |
Whether or not enable t2/t3 cpu unlimited (if true, might incur additional charges) |
string |
"false" |
no |
ec2_key_name |
EC2 key name to attach to newly created EC2 instances |
string |
"" |
no |
instance_type |
EC2 instance type |
string |
"t3.micro" |
no |
instances_desired |
Number of EC2 instances desired |
string |
"1" |
no |
security_group_ids |
list of security group IDs |
list |
[] |
no |
spot |
Whether or not use Spot instances. Warning: most likely not suitable for production! |
string |
"false" |
no |
subnet_ids |
list of subnet IDs |
list |
[] |
no |
tags |
AWS tags |
map |
{} |
no |
vpc_id |
VPC id to use |
string |
"" |
no |
Name |
Description |
ecs_cluster_arn |
The ARN of this cluster |
ecs_cluster_id |
The ARN of this cluster |
ecs_nodes_role_arn |
The ARN of the ec2 role for the cluster nodes |
ecs_nodes_role_id |
The ID of the ec2 role for the cluster nodes |