Skip to content

Commit

Permalink
feat: Fix postgres ve delete command (#2113)
Browse files Browse the repository at this point in the history
fix postgres ve delete command
  • Loading branch information
mamari90 authored Jun 5, 2024
1 parent 494821d commit f4abd1e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/domains/fdr-common/03_postgresql_replica.tf
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ resource "null_resource" "virtual_endpoint" {
provisioner "local-exec" {
when = destroy
command = <<EOT
az postgres flexible-server virtual-endpoint delete --resource-group ${self.triggers.rg_name} --server-name ${self.triggers.primary_server_name} --name ${self.triggers.ve_name}
az postgres flexible-server virtual-endpoint delete --resource-group ${self.triggers.rg_name} --server-name ${self.triggers.primary_server_name} --name ${self.triggers.ve_name} --yes
EOT
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/domains/gps-common/03_postgresql_replica.tf
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ resource "null_resource" "virtual_endpoint" {
provisioner "local-exec" {
when = destroy
command = <<EOT
az postgres flexible-server virtual-endpoint delete --resource-group ${self.triggers.rg_name} --server-name ${self.triggers.primary_server_name} --name ${self.triggers.ve_name}
az postgres flexible-server virtual-endpoint delete --resource-group ${self.triggers.rg_name} --server-name ${self.triggers.primary_server_name} --name ${self.triggers.ve_name} --yes
EOT
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/domains/nodo-common/03_postgresql_replica.tf
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ resource "null_resource" "virtual_endpoint" {
provisioner "local-exec" {
when = destroy
command = <<EOT
az postgres flexible-server virtual-endpoint delete --resource-group ${self.triggers.rg_name} --server-name ${self.triggers.primary_server_name} --name ${self.triggers.ve_name}
az postgres flexible-server virtual-endpoint delete --resource-group ${self.triggers.rg_name} --server-name ${self.triggers.primary_server_name} --name ${self.triggers.ve_name} --yes
EOT
}
}
Expand Down

0 comments on commit f4abd1e

Please sign in to comment.