Question from the Terraform : certification training test

How to reference a data block attribute in Terraform?

Waiting for validation

Consider the following code:

data "scaleway_account_project" "project" {
  name = “star-wars-project
}

resource "scaleway_object_bucket" "bucket" {
  name = "empire_bucket"
  region = "fr-par"
  project_id = __________
}

Which expression should be used to populate the project_id argument, referencing the project_id attribute of the scaleway_account_project.project data block?

Author: Julien WITTOUCKStatus: Waiting for validationQuestion not yet passed
0
Community EvaluationsNo one has reviewed this question yet, be the first!