Skip to content

Commit

Permalink
fix: change the value of deletion_policy to Prevent for project conta…
Browse files Browse the repository at this point in the history
…ins bastion

Signed-off-by: Basma1912 <[email protected]>
  • Loading branch information
Basma1912 committed Jan 7, 2025
1 parent 4c92e90 commit 72ee915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google_project/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ resource "random_id" "project" {
resource "google_project" "project" {
name = local.display_name
project_id = local.project_id
deletion_policy = "ABANDON"
deletion_policy = contains(local.project_id, "bastion") ? "PREVENT" : "ABANDON"

billing_account = var.billing_account_id
folder_id = var.parent_id
Expand Down

0 comments on commit 72ee915

Please sign in to comment.