Skip to content

Commit

Permalink
Merge pull request #112 from GoogleCloudPlatform/refactor-three-tier-gce
Browse files Browse the repository at this point in the history
Refactor three tier gce
rajasnathak authored Jan 31, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 451eca2 + 9e718fd commit 39f4a14
Showing 16 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions three-tier-app-gce/README.md
Original file line number Diff line number Diff line change
@@ -57,7 +57,7 @@ sh prereq.sh

3. Run the Cloud Build Job
```
gcloud builds submit . --config cloudbuild.yaml
gcloud builds submit . --config build/cloudbuild.yaml
```

## Testing
@@ -90,5 +90,5 @@ Finally, if you paste the ip and enter in your browser, you see the example appl

2. Run the command below on Cloud Shell to delete the resources.
```
gcloud builds submit . --config cloudbuild_destroy.yaml
gcloud builds submit . --config build/cloudbuild_destroy.yaml
```
File renamed without changes
Original file line number Diff line number Diff line change
@@ -22,14 +22,14 @@ steps:
terraform init \
-backend-config="bucket=$PROJECT_ID-tf-state" \
-backend-config="prefix=three-tier-app-gce"
dir: terraform
dir: infra

- id: 'tf apply'
name: 'hashicorp/terraform:1.0.0'
args:
- apply
- -auto-approve
dir: terraform
dir: infra

- id: 'upload data'
name: 'gcr.io/cloud-builders/gcloud-slim'
Original file line number Diff line number Diff line change
@@ -22,13 +22,13 @@ steps:
terraform init \
-backend-config="bucket=$PROJECT_ID-tf-state" \
-backend-config="prefix=three-tier-app-gce"
dir: terraform
dir: infra
- id: 'tf destroy'
name: 'hashicorp/terraform:1.0.0'
args:
- destroy
- -auto-approve
dir: terraform
dir: infra
options:
env:
- TF_VAR_project_id=$PROJECT_ID
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 39f4a14

Please sign in to comment.