Question from the Terraform : certification training test

How to extract a list of values from a list of objects in Terraform?

Medium

Consider the following variable declaration:

variable "mylist" {
  type = list(object({id = string}))
}

Which expressions can be used to create a list of id from this variable? (2 correct answers)

Author: Julien WITTOUCKStatus: PublishedQuestion passed 6 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!