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

silly-fireman-6851

03/26/2024, 1:22 PM
I want to understand the behaviour of pulumi • when I run
pulumi up
for the first time, it created everything successfully • if I rerun
pulumi up
it throws error saying entity already exists • in aws cloudformation it just says that no changes required • is there a way we can do
pulumi up
multiple times without failing
h

hallowed-horse-57635

03/26/2024, 1:26 PM
What resources are deployed. Many resources need redeployment even with no updates (this is how the underlying terraform providers worked). Example if an instance uses the inline sgs in aws.
s

silly-fireman-6851

03/26/2024, 1:30 PM
s3 bucket
h

hallowed-horse-57635

03/26/2024, 3:24 PM
what provider version and are you using pulumi cloud ?
l

little-cartoon-10569

03/26/2024, 9:02 PM
The only way this would happen would be if you are changing the Pulumi name of the bucket without changing its S3 name. Pulumi uses a desired state model:
pulumi up
doesn't simply create the resources, it does whatever's needed to get the in-cloud resources matching the in-code shape of the resources. So it will update, delete, replace or whatever. It should always be safe to run
pulumi up
, unless there's something "unsafe" in the code.