You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am importing an existing postgres database Azure resource into pulumi. After copying and pasting the code as-is, I get an error:
error: unable to replace resource "urn:pulumi:production::project-name::azure-native:dbforpostgresql:Server::resource-name"
as it is currently marked for protection. To unprotect the resource, remove the protect flag from the resource in your Pulumi program and run pulumi up
There are no changes to the config that pulumi output. To experiment, I turned the protect flag into false. And I got a diff (see example).
As a follow up question, will a diff like this actually delete and replace my postgres instance in Azure?
Example
Manually create a postgres server in azure portal. Below is the resource json:
Run pulumi preview. This gets the following error:
error: unable to replace resource "urn:pulumi:production::project-name::azure-native:dbforpostgresql:Server::resource-name"
as it is currently marked for protection. To unprotect the resource, remove the `protect` flag from the resource in your Pulumi program and run `pulumi up`
CLI
Version 3.108.1
Go Version go1.22.0
Go Compiler gc
Plugins
NAME VERSION
nodejs unknown
Host
OS darwin
Version 14.3.1
Arch arm64
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered:
What happened?
I am importing an existing postgres database Azure resource into pulumi. After copying and pasting the code as-is, I get an error:
error: unable to replace resource "urn:pulumi:production::project-name::azure-native:dbforpostgresql:Server::resource-name"
as it is currently marked for protection. To unprotect the resource, remove the
protect
flag from the resource in your Pulumi program and runpulumi up
There are no changes to the config that pulumi output. To experiment, I turned the
protect
flag into false. And I got a diff (see example).As a follow up question, will a diff like this actually delete and replace my postgres instance in Azure?
Example
pulumi import
pulumi preview
. This gets the following error:protect
flag to false.pulumi preview
. There is a diff that shows:Output of
pulumi about
CLI
Version 3.108.1
Go Version go1.22.0
Go Compiler gc
Plugins
NAME VERSION
nodejs unknown
Host
OS darwin
Version 14.3.1
Arch arm64
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: