Skip to content

Commit

Permalink
fix: Ignore the first tf destroy error code (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
k3yss authored Aug 9, 2024
1 parent 416167b commit 2f41ff2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/gcp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ destroy-bootstrap:

destroy-postgresql:
cd postgresql \
&& $(TF) destroy \
&& tf state rm module.postgresql.google_sql_user.admin \
&& $(TF) destroy || true \
&& tf state rm module.postgresql.google_sql_user.admin || true \
&& $(TF) destroy

.PHONY: bootstrap inception platform smoketest postgresql
1 change: 1 addition & 0 deletions modules/postgresql/gcp/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ resource "postgresql_extension" "pglogical" {
]
}


resource "google_database_migration_service_connection_profile" "connection_profile" {
count = local.upgradable ? 1 : 0
project = local.gcp_project
Expand Down

0 comments on commit 2f41ff2

Please sign in to comment.