Question from the Terraform : certification training test

How to use a local variable in a Terraform resource declaration?

Easy

Consider the following block of code:

locals {
  region = "fr-par"
}

resource "scaleway_rdb_instance" "main" {
  node_type = "DB-DEV-S"
  engine    = "PostgreSQL-11"
  region    = ______
}

How to set the region parameter of the scaleway_rdb_instance.main resource using the local variable?

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