https://pulumi.com logo
Title
s

salmon-account-74572

08/09/2022, 4:24 PM
If I stop an EC2 instance and then restart it (say, using the AWS CLI), its IP address changes. Is there any reason why
pulumi refresh
would not pick up the new IP address and update the stack output accordingly?
Note that I’m talking about stopping the instance, not terminating the instance. The instance ID remains constant/unchanged.
w

witty-candle-66007

08/10/2022, 4:14 PM
Refresh will update the state and I would expect the new IP to be noted. A
pulumi up
would then update the output. You can use
pulumi up -r
to do both a refresh and an update.