Complete the code to define an ECS cluster name.
resource "aws_ecs_cluster" "example" { name = "[1]" }
The ECS cluster name is set to "example-cluster" as a clear identifier.
Complete the code to enable container insights on the ECS cluster.
resource "aws_ecs_cluster" "example" { name = "example-cluster" [1] = true }
The correct attribute to enable container insights is container_insights.
Fix the error in the ECS cluster resource by completing the missing attribute.
resource "aws_ecs_cluster" "example" { name = "example-cluster" [1] = "ENABLED" }
The attribute container_insights accepts the value "ENABLED" to turn on insights.
Fill both blanks to create an ECS cluster with container insights enabled and a custom name.
resource "aws_ecs_cluster" "example" { name = "[1]" [2] = true }
The cluster name is set to "custom-cluster" and container_insights is enabled with true.
Fill all three blanks to define an ECS cluster with a custom name, enable container insights, and add tags.
resource "aws_ecs_cluster" "example" { name = "[1]" [2] = true tags = { Environment = "[3]" } }
The cluster is named "prod-cluster", container insights are enabled, and the tag Environment is set to "production".