
Ultimate access to all questions.
You are deploying a Cloud Build job that executes Terraform code upon a Git branch update. During testing, the job fails with the following error in the logs:
Initializing the backend...
Error: Failed to get existing workspaces: querying Cloud Storage failed: googleapi: Error 403
Initializing the backend...
Error: Failed to get existing workspaces: querying Cloud Storage failed: googleapi: Error 403
To resolve this issue while adhering to Google-recommended practices, what steps should you take?
A
Change the Terraform code to use local state.
B
Create a storage bucket with the name specified in the Terraform configuration.
C
Grant the roles/owner Identity and Access Management (IAM) role to the Cloud Build service account on the project.
D
Grant the roles/storage.objectAdmin Identity and Access Management (IAM) role to the Cloud Build service account on the state file bucket.