This module provides a primitive Terraform module for creating an Amazon ECS cluster with support for various configurations including container insights, execute command configuration, and service connect defaults.
- Configurable cluster settings (Container Insights)
- Execute command configuration with logging
- Managed storage configuration for Fargate ephemeral storage encryption
- Service Connect defaults
- Comprehensive tagging
module "ecs_cluster" {
source = "path/to/module"
name = "my-ecs-cluster"
settings = [
{
name = "containerInsights"
value = "enabled"
}
]
tags = {
Environment = "dev"
}
}- 1 ECS Cluster
| Name | Version |
|---|---|
| terraform | >= 1.0 |
| aws | ~> 5.0 |
No modules.
| Name | Type |
|---|---|
| aws_ecs_cluster.this | resource |
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| name | Name of the ECS cluster (up to 255 letters, numbers, hyphens, and underscores) | string |
n/a | yes |
| tags | Key-value map of resource tags | map(string) |
{} |
no |
| settings | Configuration block(s) with cluster settings. For example, this can be used to enable CloudWatch Container Insights for a cluster | list(object({ |
[] |
no |
| configuration | Execute command configuration for the cluster | object({ |
null |
no |
| service_connect_defaults | Default Service Connect namespace | object({ |
null |
no |
| Name | Description |
|---|---|
| arn | ARN that identifies the cluster |
| name | Name of the cluster |
| tags_all | Map of tags assigned to the resource, including those inherited from the provider |