Question from the Terraform : certification training test

How to reference a data block attribute in Terraform?

Medium

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