aws_ecs_cluster

Provides an ECS cluster.

Example Usage

resource "aws_ecs_cluster" "foo" {
  name = "white-hart"
}

Argument Reference

The following arguments are supported:

  • name - (Required) The name of the cluster (up to 255 letters, numbers, hyphens, and underscores)

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • id - The Amazon Resource Name (ARN) that identifies the cluster
  • arn - The Amazon Resource Name (ARN) that identifies the cluster

Import

ECS clusters can be imported using the name, e.g.

$ terraform import aws_ecs_cluster.stateless stateless-app

© 2018 HashiCorp
Licensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/aws/r/ecs_cluster.html