https://pulumi.com logo
#general
Title
# general
a

ancient-thailand-47587

01/31/2024, 5:32 PM
Hi, I’m using Pulumi with AWS (and python but shouldn’t matter) and what I’m seeing is - • Create resource with pulumi • Go to AWS console delete the resource • Re-run “pulumi up” but noticed the deleted resource does not get recreated. <-- is this expected behavior?
s

salmon-account-74572

01/31/2024, 5:48 PM
I'm reasonably certain this would be expected behavior for
pulumi destroy
, but I didn't think
pulumi up
worked the same way. Making some internal inquiries now.
a

ancient-thailand-47587

01/31/2024, 5:50 PM
Thank you, Just putting this info here if needed pulumi v.3.99.0, pulumi-aws=6.15.0
s

salmon-account-74572

01/31/2024, 5:57 PM
OK, this is expected behavior. You'll need to run
pulumi refresh
first, or use
pulumi up --refresh
to address this sort of situation.
a

ancient-thailand-47587

01/31/2024, 6:00 PM
Thank you!
s

salmon-account-74572

01/31/2024, 6:02 PM
There's also a project configuration option that allows you to set this behavior to happen automatically. See here: https://www.pulumi.com/docs/concepts/projects/project-file/#example-project-file-with-all-possible-attributes
a

ancient-thailand-47587

01/31/2024, 6:03 PM
Great, will take a look, thanks again
s

salmon-account-74572

01/31/2024, 6:03 PM
No problem, happy to help!