Add project and credentials CLI vars to Terraform commands

This will automatically pass along the environment variables set in a previous step, and prevent users from manually needed to type in the values in the CLI.
This commit is contained in:
Kent 'picat' Gruber
2020-07-16 16:32:28 -04:00
parent 72661c4473
commit 8d7c863d66

View File

@@ -205,13 +205,13 @@ terraform init
Plan infrastructure changes with Terraform:
```console
terraform plan
terraform plan -var="project=${GOOGLE_PROJECT}" -var="credentials=${GOOGLE_APPLICATION_CREDENTIALS}"
```
Apply infrastructure changes with Terraform:
```console
terraform apply
terraform apply -auto-approve -var="project=${GOOGLE_PROJECT}" -var="credentials=${GOOGLE_APPLICATION_CREDENTIALS}"
```
## Access the Cluster