gentle-rocket-97330
11/01/2021, 9:10 PMpulumi up
and during the preview stage I get the error message “error: Preview failed: unable to delete resource... ...as it is currently marked for protection. To unprotect the resource, either remove the protect
flag from the resource in your Pulumi program and run pulumi up
or...“.
I don’t want to delete it; I want to adopt it. Can anyone help me understand why preview seems to be trying to delete a protected/imported resource?witty-candle-66007
11/01/2021, 9:36 PMpulumi import
includes a resource option with protect=True
(https://www.pulumi.com/docs/intro/concepts/resources/#protect)
Your pulumi up
is trying to delete the bucket for some reason - I wonder if it’s actually trying to replace it (which includes a delete operation).
If you do pulumi preview --diff
what does it show for the bucket?gentle-rocket-97330
11/01/2021, 11:25 PMpulumi config get aws:region
, it returns “us=east-1”witty-candle-66007
11/02/2021, 3:02 PMus-east-1
gentle-rocket-97330
11/02/2021, 3:48 PMus-east-1
witty-candle-66007
11/02/2021, 4:01 PMgentle-rocket-97330
11/02/2021, 4:17 PM> pulumi preview --diff
Previewing update (dev)
View Live: https://app.pulumi.com/patrickburrell/...
pulumipulumiStack: (same)
[urn=...]
error: missing required property ‘region’
Resources:
1 unchanged
>
witty-candle-66007
11/02/2021, 4:26 PMpulumi config set aws-native:region us-east-1
gentle-rocket-97330
11/02/2021, 5:52 PM