0
0
AWScloud~10 mins

ECS cluster concept in AWS - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to define an ECS cluster name.

AWS
resource "aws_ecs_cluster" "example" {
  name = "[1]"
}
Drag options to blanks, or click blank then click option'
Aexample-cluster
Bmy-ecs-cluster
Ccluster-01
Ddefault-cluster
Attempts:
3 left
💡 Hint
Common Mistakes
Leaving the name empty or using invalid characters.
Using a name that is too generic or unclear.
2fill in blank
medium

Complete the code to enable container insights on the ECS cluster.

AWS
resource "aws_ecs_cluster" "example" {
  name = "example-cluster"
  [1] = true
}
Drag options to blanks, or click blank then click option'
Amonitoring
Bsetting
Ccontainer_insights
Denable_logging
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect attribute names like 'enable_logging' or 'monitoring'.
Forgetting to set the value to true.
3fill in blank
hard

Fix the error in the ECS cluster resource by completing the missing attribute.

AWS
resource "aws_ecs_cluster" "example" {
  name = "example-cluster"
  [1] = "ENABLED"
}
Drag options to blanks, or click blank then click option'
Acontainer_insights
Blogging
Cmonitoring
Dinsights
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect attribute names or values.
Using boolean true instead of string "ENABLED".
4fill in blank
hard

Fill both blanks to create an ECS cluster with container insights enabled and a custom name.

AWS
resource "aws_ecs_cluster" "example" {
  name = "[1]"
  [2] = true
}
Drag options to blanks, or click blank then click option'
Acustom-cluster
Benable_logging
Ccontainer_insights
Dmonitoring
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up attribute names or using incorrect values.
Using generic names instead of a custom cluster name.
5fill in blank
hard

Fill all three blanks to define an ECS cluster with a custom name, enable container insights, and add tags.

AWS
resource "aws_ecs_cluster" "example" {
  name = "[1]"
  [2] = true
  tags = {
    Environment = "[3]"
  }
}
Drag options to blanks, or click blank then click option'
Aprod-cluster
Bcontainer_insights
Cproduction
Dmonitoring
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect attribute names or tag values.
Forgetting to enable container insights.