https://pulumi.com logo
#aws
Title
# aws
g

gentle-rocket-97330

09/30/2022, 7:54 PM
hi! (I searched history but haven't found anything related to my question.) When I run
pulumi up
, I see the plan is to create a new EC2 instance. I would like to know why pulumi thinks this is necessary. I've tried generating varying levels of logs with the
-v=N
parameter but I haven't found anything that clues me in to the reason(s) why. Is there a way to explicitly determine why a re-create of a resource is deemed necessary?
b

billowy-army-68599

09/30/2022, 8:30 PM
you should see it in the diff, can you screenshot what you’re seeing?
g

gentle-rocket-97330

09/30/2022, 8:45 PM
you can see here that a new instance is created and the previous deleted, but no indications as to why. The target group attachments change of course due to the new instance
b

billowy-army-68599

09/30/2022, 8:53 PM
if you expand the diff what does it tell you?
the reason it’s replacing is because you changed the name of the resource
Copy code
+ dash-purple-server
- purple-dash-server
🙌 1
g

gentle-rocket-97330

09/30/2022, 10:02 PM
oh good grief! that was staring me right in the face! 🤦‍♂️ thank you for that!