You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 0-bootstrap/README.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -125,7 +125,14 @@ your current Jenkins manager (controller) environment.
125
125
126
126
## Deploying with Cloud Build
127
127
128
-
1. Go to the `0-bootstrap` folder.
128
+
1. Clone [terraform-example-foundation](https://github.com/terraform-google-modules/terraform-example-foundation) into your local environment and navigate to the `0-bootstrap` folder.
@@ -162,10 +164,10 @@ See `0-bootstrap` [README-Jenkins.md](../0-bootstrap/README-Jenkins.md#deploying
162
164
163
165
### Run Terraform locally
164
166
165
-
1. Change into `2-environments` folder, copy the Terraform wrapper script and ensure it can be executed.
167
+
1.The next instructions assume that you are at the same level of the `terraform-example-foundation` folder. Change into `2-environments` folder, copy the Terraform wrapper script and ensure it can be executed.
@@ -267,10 +269,10 @@ See `0-bootstrap` [README-Jenkins.md](../0-bootstrap/README-Jenkins.md#deploying
267
269
268
270
### Run Terraform locally
269
271
270
-
1. Change into `3-networks-dual-svpc` folder, copy the Terraform wrapper script and ensure it can be executed.
272
+
1.The next instructions assume that you are at the same level of the `terraform-example-foundation` folder. Change into `3-networks-dual-svpc` folder, copy the Terraform wrapper script and ensure it can be executed.
@@ -276,10 +278,10 @@ See `0-bootstrap` [README-Jenkins.md](../0-bootstrap/README-Jenkins.md#deploying
276
278
277
279
### Run Terraform locally
278
280
279
-
1. Change into `3-networks-hub-and-spoke` folder, copy the Terraform wrapper script and ensure it can be executed.
281
+
1.The next instructions assume that you are at the same level of the `terraform-example-foundation` folder. Change into `3-networks-hub-and-spoke` folder, copy the Terraform wrapper script and ensure it can be executed.
@@ -216,10 +218,10 @@ See `0-bootstrap` [README-Jenkins.md](../0-bootstrap/README-Jenkins.md#deploying
216
218
217
219
### Run Terraform locally
218
220
219
-
1. Change into `4-projects` folder, copy the Terraform wrapper script and ensure it can be executed.
221
+
1.The next instructions assume that you are at the same level of the `terraform-example-foundation` folder. Change into `4-projects` folder, copy the Terraform wrapper script and ensure it can be executed.
220
222
221
223
```bash
222
-
cd 4-projects
224
+
cdterraform-example-foundation/4-projects
223
225
cp ../build/tf-wrapper.sh .
224
226
chmod 755 ./tf-wrapper.sh
225
227
```
@@ -250,7 +252,7 @@ When using Cloud Build or Jenkins as your CI/CD tool each environment correspond
250
252
251
253
To use the `validate` option of the `tf-wrapper.sh` script, please follow the [instructions](https://cloud.google.com/docs/terraform/policy-validation/validate-policies#install) to install the terraform-tools component.
252
254
253
-
1. Use `terraform output` to get the Cloud Build project ID and the environment step Terraform Service Account from 0-bootstrap output. An environment variable `GOOGLE_IMPERSONATE_SERVICE_ACCOUNT` will be set using the Terraform Service Account to enable impersonation.
255
+
1. Use `terraform output` to get the Cloud Build Project ID and the environment step Terraform Service Account from 0-bootstrap output. An environment variable `GOOGLE_IMPERSONATE_SERVICE_ACCOUNT` will be set using the Terraform Service Account to enable impersonation.
Copy file name to clipboardExpand all lines: 5-app-infra/README.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,7 +80,9 @@ commands. The `-T` flag is needed for Linux, but causes problems for MacOS.
80
80
81
81
### Deploying with Cloud Build
82
82
83
-
1. Clone the policies repo. **Note:** This repo has the same name as the repo created in step 1-org, to prevent a collision the command below will clone it in folder gcp-policies-app-infra.
83
+
1. Clone the `gcp-policies` repo based on the Terraform output from the `0-bootstrap` step.
84
+
Clone the repo at the same level of the `terraform-example-foundation` folder, the following instructions assume this layout.
85
+
Run `terraform output cloudbuild_project_id` in the `0-bootstrap` folder to get the Cloud Build Project ID.
**Note:**`gcp-policies` repo has the same name as the repo created in step `1-org`. In order to prevent a collision, the previous command will clone this repo in the folder `gcp-policies-app-infra`.
95
+
92
96
1. Navigate into the repo and copy contents of policy-library to new repo. All subsequent steps assume you are running them
93
97
from the gcp-policies-app-infra directory. If you run them from another directory,
94
98
adjust your copy paths accordingly.
@@ -190,10 +194,10 @@ commands. The `-T` flag is needed for Linux, but causes problems for MacOS.
190
194
191
195
### Run Terraform locally
192
196
193
-
1. Change into `5-app-infra` folder, copy the Terraform wrapper script and ensure it can be executed.
197
+
1.The next instructions assume that you are at the same level of the `terraform-example-foundation` folder. Change into `5-app-infra` folder, copy the Terraform wrapper script and ensure it can be executed.
0 commit comments