GoogleCloudPlatform / cloud-ops-sandbox

Cloud Operations Sandbox is an open source collection of tools that helps practitioners to learn O11y and R9y practices from Google and apply them using Cloud Operations suite of tools.
Apache License 2.0
405 stars 148 forks source link

Following steps in the walkthrough does not complete without any error message #1041

Closed minherz closed 1 year ago

minherz commented 1 year ago

Environment details

Steps to reproduce

  1. Create Google Cloud project
  2. Press "OPEN IN CLOUD SHELL" button from the home page of this repo
  3. Follow instructions up to running provisioning/sandboxctl create ... command

See the output similar to the following:

sandboxctl: [WARNING]: It is possible that project ****redacted_project_id**** previously hosted Cloud Ops Sandbox. Old state will be removed.

Initializing the backend...

Successfully configured the backend "gcs"! Terraform will automatically
use this backend unless the backend configuration changes.
Initializing modules...

Expecting to see the full log with URLs of the demo application at the end.

minherz commented 1 year ago

More information can be discovered using the --verbose verbosity flag with the sandboxctl create command. It shows that terraform init fails due lack of access permissions to reach GCS bucket to store the state.

Beside establishing application credentials to be used by terraform, CLI has to be modified to show an error that advise to use verbosity flag for additional info.