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

salmon-account-74572

11/13/2019, 8:39 AM
Can anyone provide some insight on why changing tags on an EC2 Instance would necessitate a Replace instead of an Update when running
pulumi update
?
g

gentle-diamond-70147

11/13/2019, 4:13 PM
That certainly doesn't sound expected. Does
pulumi preview --diff
show any other changes?
I just tried this on one of my stacks and don't see the same behavior
Copy code
aws-ts-webserver % pulumi preview
Previewing update (demo):

     Type                 Name                        Plan       Info
     pulumi:pulumi:Stack  demo-aws-ts-webserver-demo
 ~   ├─ aws:ec2:Instance  web-server-3                update     [diff: ~tags]
 ~   ├─ aws:ec2:Instance  web-server-1                update     [diff: ~tags]
 ~   ├─ aws:ec2:Instance  web-server-4                update     [diff: ~tags]
 ~   ├─ aws:ec2:Instance  web-server-2                update     [diff: ~tags]
 ~   └─ aws:ec2:Instance  web-server-0                update     [diff: ~tags]

Resources:
    ~ 5 to update
    11 unchanged
s

salmon-account-74572

11/18/2019, 3:22 AM
Sorry for the delay in responding. I'll check it again shortly, to see if the behavior is still occurring, and I'll take a look at
pulumi preview --diff
as well. What version of Pulumi are you using?
g

gentle-diamond-70147

11/18/2019, 2:14 PM
v1.5.2 and
@pulumi/aws@1.8.0
s

salmon-account-74572

11/19/2019, 1:24 AM
Got it, thanks