QuestionQ21

VerifiedTerraform configuration

A variable block is displayed in the Exhibit space on this page:

Question Image

You will use this variable as the value of the tags argument in several resources. The data format must be a set of key-value pairs.

Which type argument should you use?

Explanation

A Terraform map(string) represents a collection of values identified by string keys, with every value constrained to a string. This matches resource tags, which are arbitrary key-value pairs such as Environment = "prod".

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!