Skip to content

Commit

Permalink
fix typo, add commit for git init and add some instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
caetano-colin authored and amandakarina committed Aug 19, 2024
1 parent 9e34acd commit a60b76b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
8 changes: 5 additions & 3 deletions 0-bootstrap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ The following steps will guide you through deploying without using Cloud Build.
cd gcp-bootstrap
git init
git commit -m "initialize empty directory" --allow-empty
git checkout -b plan
git checkout -b shared
Expand Down Expand Up @@ -428,18 +429,18 @@ The following steps will guide you through deploying without using Cloud Build.
git commit -m 'Initialize policy library repo'
```

1. Navigate out of the policies repo.
1. Navigate back to `gcp-bootstrap` repo.

```bash
cd ..
cd ../gcp-bootstrap
```

1. To validate your policies, run `gcloud beta terraform vet`. For installation instructions, see [Install Google Cloud CLI](https://cloud.google.com/docs/terraform/policy-validation/validate-policies#install).

1. Run the following commands and check for violations:

```bash
export VET_PROJECT_ID=pjr-seed-serverless-test
export VET_PROJECT_ID=A-VALID-PROJECT-ID
terraform show -json bootstrap.tfplan > bootstrap.json
gcloud beta terraform vet bootstrap.json --policy-library="../terraform-example-foundation/policy-library" --project ${VET_PROJECT_ID}
```
Expand Down Expand Up @@ -502,6 +503,7 @@ The following steps will guide you through deploying without using Cloud Build.
1. Commit the new code version, so you can manage versions locally.

```sh
git add backend.tf
git commit -m "Init gcs backend."
cd ../
```
Expand Down
1 change: 1 addition & 0 deletions 1-org/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ Create `gcp-org` folder, copy `1-org` content and Terraform wrapper script; ensu

```bash
git init
git commit -m "initialize empty directory" --allow-empty
git checkout -b plan
git checkout -b production
```
Expand Down
1 change: 1 addition & 0 deletions 2-environments/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ See `0-bootstrap` [README-GitHub.md](../0-bootstrap/README-GitHub.md#deploying-s
```bash
cd gcp-environments
git init
git commit -m "initialize empty directory" --allow-empty
git checkout -b production
git checkout -b nonproduction
git checkout -b development
Expand Down
3 changes: 2 additions & 1 deletion 3-networks-dual-svpc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,14 +288,15 @@ See `0-bootstrap` [README-GitHub.md](../0-bootstrap/README-GitHub.md#deploying-s
cp -R terraform-example-foundation/3-networks-dual-svpc/* gcp-network
cp terraform-example-foundation/build/tf-wrapper.sh gcp-network/
cp terraform-example-foundation/.gitignore gcp-network
chmod 755 ./gcp-environments/tf-wrapper.sh
chmod 755 ./gcp-network/tf-wrapper.sh
```

1. Navigate to `gcp-network` and initialize a local Git repository to manage versions locally. Then, create the environment branches.

```bash
cd gcp-network
git init
git commit -m "initialize empty directory" --allow-empty
git checkout -b shared
git checkout -b development
git checkout -b nonproduction
Expand Down
3 changes: 2 additions & 1 deletion 4-projects/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,14 +243,15 @@ See `0-bootstrap` [README-GitHub.md](../0-bootstrap/README-GitHub.md#deploying-s
cp -R terraform-example-foundation/4-projects/* gcp-projects
cp terraform-example-foundation/build/tf-wrapper.sh gcp-projects/
cp terraform-example-foundation/.gitignore gcp-projects
chmod 755 ./gcp-environments/tf-wrapper.sh
chmod 755 ./gcp-projects/tf-wrapper.sh
```

1. Navigate to `gcp-projects` and initialize a local Git repository to manage versions locally. Then, create the environment branches.

```bash
cd gcp-projects
git init
git commit -m "initialize empty directory" --allow-empty
git checkout -b shared
git checkout -b development
git checkout -b nonproduction
Expand Down

0 comments on commit a60b76b

Please sign in to comment.