github.com/GoogleCloudPlatform/testgrid@v0.0.174/terraform/README.md (about) 1 (Modified from https://github.com/GoogleCloudPlatform/oss-test-infra/tree/master/prow/oss/terraform) 2 3 ## Terraform 4 5 This directory contains terrafrom configurations for provisioning monitoring and alerting stacks on GCP for TestGrid. These are applied manually. 6 7 ### Prerequisite For Provisioning 8 9 - Terraform 0.13.1 10 [Installation guide](https://www.terraform.io/downloads.html) 11 12 - Authenticate with GCP 13 14 ```shell 15 gcloud auth login && gcloud auth application-default login 16 ``` 17 18 ### Initial Setup (One time action) 19 20 This is done once before initial provisioning of monitoring and alerting stacks. 21 22 ```shell 23 gsutil mb -p k8s-testgrid gs://k8s-testgrid-metrics-terraform 24 gsutil versioning set on gs://k8s-testgrid-metrics-terraform 25 ``` 26 27 ### Provisioning 28 29 1. Run `terraform init`. Terraform will automatically download the plugins 30 required to execute this code. You only need to do this once per machine. 31 32 ```shell 33 terraform init 34 ``` 35 36 1. Validate with: 37 38 ```shell 39 make validate 40 ``` 41 42 1. Execute Terraform: 43 44 ```shell 45 terraform apply 46 ```