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
Seems like it's caused by defining "ebsBlockDevices" in "aws.ec2.Instance", but also defining it in the used LaunchTemplate.
After removing the definition from the Instance, it works as expected.
Same issue with Route Tables and Routes:
Adding "routes:[]" to a RouteTable and defining the Routes separately, causes changes on every "pulumi reload" / "pulumi up".
Imho it should raise a warning if I define sub-resources using an array in the higher level resource and defining sub-resources separately at the same time.
viveklak
changed the title
aws:ec2:Instance gets replaced on every update because of falsely diff in block device name
Warn on overlapping configurations with sub resource
Feb 2, 2022
Hello!
Issue details
EC2 instance defined with following code:
Instance get replaced on every
pulumi up
because of diff:+- └─ aws:ec2:Instance myServer replace [diff: ~ebsBlockDevices]
Details:
Steps to reproduce
pulumi up
several timesExpected: Instance is not replaced because deviceName did not change
Actual: Instance gets replaced every time
The text was updated successfully, but these errors were encountered: