From 0059004aa17a9badca13d33ec15be875eb010a39 Mon Sep 17 00:00:00 2001 From: Grant Sorbo Date: Wed, 29 Mar 2023 03:10:47 -0500 Subject: [PATCH] fix: set project via walkthrough link (#62) --- examples/standalone_single_project/outputs.tf | 2 +- examples/standalone_single_project/walkthrough.md | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/examples/standalone_single_project/outputs.tf b/examples/standalone_single_project/outputs.tf index c5288325..c997b35f 100644 --- a/examples/standalone_single_project/outputs.tf +++ b/examples/standalone_single_project/outputs.tf @@ -31,5 +31,5 @@ output "gar_repo" { output "console_walkthrough_link" { description = "URL to open the in-console walkthrough." - value = "https://shell.cloud.google.com/cloudshell/editor?cloudshell_git_repo=https%3A%2F%2Fgithub.com%2FGoogleCloudPlatform%2Fterraform-google-secure-cicd.git&cloudshell_git_branch=main&cloudshell_tutorial=examples%2Fstandalone_single_project%2Fwalkthrough.md" + value = "https://shell.cloud.google.com/cloudshell/editor?cloudshell_git_repo=https%3A%2F%2Fgithub.com%2FGoogleCloudPlatform%2Fterraform-google-secure-cicd.git&cloudshell_git_branch=main&cloudshell_tutorial=examples%2Fstandalone_single_project%2Fwalkthrough.md&project=${var.project_id}" } diff --git a/examples/standalone_single_project/walkthrough.md b/examples/standalone_single_project/walkthrough.md index df9c2a55..d3e6936e 100644 --- a/examples/standalone_single_project/walkthrough.md +++ b/examples/standalone_single_project/walkthrough.md @@ -25,10 +25,15 @@ Estimated time to complete: To get started, click **Start**. ## Verify environment variables +Set your current project. If you launched via Solutions deployment, you can set your project automatically using your current active project. Otherwise, replace the value with the project ID where you deployed the Secure CI/CD solution. + +```bash +export PROJECT_ID=$(gcloud config get project) +``` + Set the following environment variables based on your existing resources. Replace the `< >` placeholder with the values you entered when deploying the solution. ``` -export PROJECT_ID= export REGION= export APP_NAME= ```