Question from the Terraform : certification training test

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

Waiting for validation

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: Waiting for validationQuestion not yet passed
0
Community EvaluationsNo one has reviewed this question yet, be the first!