Example:
module "ecs_cluster" {
source = "registry.terraform.io/l4gdev/ecs-cluster/aws"
version = "1.1.1"
labels = var.labels
vpc_id = local.vpc_id
private_subnets = local.priv_sub
volume_size = 30
instances_groups = [
{
name = "test"
instance_type = "t3.large"
architecture = "amd64"
autoscaling_group_min_size = 1
autoscaling_group_max_size = 10
spot = {
enabled = true
}
}
]
}
Name | Version |
---|---|
terraform | >= 1.3.0 |
aws | ~> 5.17.0 |
Name | Version |
---|---|
aws | ~> 5.17.0 |
Name | Source | Version |
---|---|---|
datadog | ./datadog | n/a |
ec2 | ./ec2 | n/a |
fsx | ./fsx | n/a |
iam | ./iam | n/a |
labels_ecs_cluster | ./labels | n/a |
security_groups | ./security_groups | n/a |
Name | Type |
---|---|
aws_ecs_cluster.cluster | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
autoscaling_group_health_check_grace_period | n/a | string |
20 |
no |
datadog | n/a | object({ |
{ |
no |
ecs_optimized_image_ssm_parameter | n/a | string |
"" |
no |
enable_container_insights | Enable CloudWatch Container Insights for the cluster | bool |
false |
no |
fsx | List of FSX file systems to create | list(object({ |
[] |
no |
instance_key_name | Do not use, by default you should use session manager. It will be enabled by default | string |
null |
no |
instances_groups | List of instance groups to create | list(object({ |
n/a | yes |
labels | Labels to apply to all resources | object({ |
n/a | yes |
private_subnets | List of subnets should be private | list(string) |
n/a | yes |
volume_size | n/a | number |
50 |
no |
vpc_id | VPC ID | string |
n/a | yes |
Name | Description |
---|---|
autoscalig_group_name | n/a |
cluster_name | n/a |
instances_capacity_providers | n/a |
security_group | n/a |