Skip to content

Commit

Permalink
Add some docs for how to run terraform locally (e.g. to validate file…
Browse files Browse the repository at this point in the history
…s). (#444)
  • Loading branch information
ensonic authored Sep 20, 2024
1 parent 0364283 commit 4e7edcb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/bootstrap/cloud/terraform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,12 @@ Our Terraform setup is special in two ways:
its own state file in the GCS bucket. When initializing
("terraform init"), you need to set -backend-config to set the right prefix.
deploy.sh also takes care of that.

To run terraform command locally, do:

```shell
bazel build @hashicorp_terraform//:terraform
alias terraform=$(realpath bazel-out/../../../external/_main~non_module_deps~hashicorp_terraform/terraform)
cd src/bootstrap/cloud/terraform/
terraform init
```

0 comments on commit 4e7edcb

Please sign in to comment.