microscopic-river-98245
06/24/2024, 1:12 PMazure-native:dbforpostgresql:Server
. It failed for the first couple of runs (my mistake), and the database server was never created.
Now it discovers a drift, and tries to delete the database server before it will create a new database server. But the original database server was never created. How do I hint the Pulumi task that it should ignore if the delete fails?
This is my yaml:
server:
type: azure-native:dbforpostgresql:Server
properties:
resourceGroupName: ${resourceGroup.name}
serverName: testserver
version: "14"
microscopic-river-98245
06/24/2024, 1:14 PM@ updating....
azure-native:containerservice:ManagedCluster aksCluster
-- azure-native:dbforpostgresql:Server server deleting original (0s)
+ azure-native:dbforpostgresql:Database database creating (0s)
@ updating....
-- azure-native:dbforpostgresql:Server server deleting original (1s) error: Code="OperationIdNotFound" Message="The operation with Id: 'testserver' does not exist."
tall-librarian-49374
06/24/2024, 1:41 PMpulumi refresh
should delete it from you state if it does not exist in the cloud.microscopic-river-98245
06/24/2024, 1:48 PMrefresh: true
without success
- name: 🔼 Provision Dev Cluster
id: pulumi
uses: pulumi/actions@v5
env:
...
with:
command: up
refresh: true
stack-name: dev
cloud-url: ...
secrets-provider: ...
work-dir: pulumi
microscopic-river-98245
06/24/2024, 1:51 PMtall-librarian-49374
06/24/2024, 2:23 PMpulumi state delete
command to delete a resource from your state. But honestly, I don't understand what is going on. Any chance you have a repro program that I could run to get in the same state locally?microscopic-river-98245
06/25/2024, 1:46 PMmicroscopic-river-98245
06/25/2024, 1:47 PMmicroscopic-river-98245
06/25/2024, 1:51 PMprovider_plugin.go:1883] provider received rpc error `Unknown`: `resource created but read failed autorest/azure: Service returned an error. Status=404 Code="ResourceNotFound" Message="The requested resource of type 'Microsoft.DBforPostgreSQL/flexibleServers' with name 'testserver' was not found.": Code="ServerGroupDropping" Message="Operations on a server group in dropping state are not allowed."`
tall-librarian-49374
06/25/2024, 2:18 PM