Skip to content

Commit

Permalink
fix: set project via walkthrough link (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
gtsorbo authored Mar 29, 2023
1 parent ad57bd5 commit 0059004
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/standalone_single_project/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
}
7 changes: 6 additions & 1 deletion examples/standalone_single_project/walkthrough.md
Original file line number Diff line number Diff line change
Expand Up @@ -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=<YOUR PROJECT ID>
export REGION=<CLOUD REGION>
export APP_NAME=<APP NAME>
```
Expand Down

0 comments on commit 0059004

Please sign in to comment.