awscc_ecs_cluster (Resource)

The AWS::ECS::Cluster resource creates an Amazon Elastic Container Service (Amazon ECS) cluster.

Example Usage

ECS Cluster

To create ECS Cluster with Container Insights enable:

resource "awscc_ecs_cluster" "this" {
  cluster_name = "example_cluster"
  cluster_settings = [{
    name  = "containerInsights"
    value = "enabled"
  }]

  tags = [{
    key   = "Modified By"
    value = "AWSCC"
  }]
}

Schema

Optional

Read-Only

Nested Schema for cluster_settings

Optional:

Nested Schema for configuration

Optional:

Nested Schema for configuration.execute_command_configuration

Optional:

Nested Schema for configuration.execute_command_configuration.log_configuration

Optional:

Nested Schema for default_capacity_provider_strategy

Optional:

Nested Schema for service_connect_defaults

Optional:

Nested Schema for tags

Optional:

Import

Import is supported using the following syntax:

$ terraform import awscc_ecs_cluster.example <resource ID>