https://pulumi.com logo
#python
Title
# python
b

bright-crayon-39468

03/26/2024, 3:44 AM
Can anyone shed some light on why this is being seen as a change, when i see no actual change here
Copy code
++aws:ec2/instance:Instance: (create-replacement)
        [id=i-091ffb5881d32ef46]
        [urn=urn:pulumi:dev::infra::aws:ec2/instance:Instance::dev]
        [provider=urn:pulumi:dev::infra::pulumi:providers:aws::default_6_27_0::3dd98521-1036-4cf1-a9eb-e2791095f13e]
      ~ securityGroups: [
          + [0]: "sg-0badf7fd2fba24cc6"
        ]
    +-aws:ec2/instance:Instance: (replace)
        [id=i-091ffb5881d32ef46]
        [urn=urn:pulumi:dev::infra::aws:ec2/instance:Instance::dev]
        [provider=urn:pulumi:dev::infra::pulumi:providers:aws::default_6_27_0::3dd98521-1036-4cf1-a9eb-e2791095f13e]
      ~ securityGroups: [
          + [0]: "sg-0badf7fd2fba24cc6"
        ]
It's triggering a change due to securityGroups but this has not changed.
I'm wondering if this could be due to a Python object instantiation created a different entity in the background which is not visible in the diff because all properties remain the same.
e

echoing-dinner-19531

04/13/2024, 7:01 PM
I don't think so, this looks like an aws provider issue. Worth raising an issue on the repo for it, the engine will respect what a provider says is a "diff" even if the values look the same to the engine.