Description
TL;DR
When following the 0-Bootsrap Running Terraform locally steps, noticed few corrections here.
According to Steps 4 and 5, if we comment out cb.tf and its associated outputs in outputs.tf, we should also comment out the projects_gcs_bucket_tfstate output. This variable is later referenced in the 4-projects implementation, as well as in Steps 18 and 19 of the same README file, where it is used to export the state bucket name.
To resolve this issue, we should avoid renaming or commenting out the entire cb.tf file. Instead, comment out all content within cb.tf except for the gcp_projects_state_bucket module and any local variables that are not dependent on the commented code. After making these changes, proceed with terraform plan and apply as outlined in the README.
The other way is like, i can rename the cb.tf to cb.tf.example and pass the hardcoded value to "projects_gcs_bucket_tfstate" as per "${var.bucket_prefix}-${module.seed_bootstrap.seed_project_id}-gcp-projects-tfstate" and create the same bucket under google.
Expected behavior
No response
Observed behavior
No response
Terraform Configuration
terraform output -raw projects_gcs_bucket_tfstate
╷
│ Error: Output "projects_gcs_bucket_tfstate" not found
│
│ The output variable requested could not be found in the state file. If you recently added this to your configuration, be sure to run `terraform apply`, since the state won't be
│ updated with new output variables until that command is run.
Terraform Version
Terraform v1.9.3
Terraform Provider Versions
+ provider registry.terraform.io/hashicorp/google v6.37.0
+ provider registry.terraform.io/hashicorp/google-beta v6.37.0
Additional information
No response