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

fancy-spoon-46046

02/12/2022, 9:13 PM
hey folks, what is a proven-practice to wait for userData script to complete. We currently the problem that pulumi shuts-down instances too early when replaced, because the userData script still runs. 😞 My favorite way would be that I can have pulumi shut down the old instances and replace ips in lb only once the new userData is done
f

freezing-van-87649

02/12/2022, 9:35 PM
would it be an option to toss them in an ASG and set up a health check that isn't healthy until userdata runs?
f

fancy-spoon-46046

02/13/2022, 12:22 PM
Not really, since we have the same issue with multiple cloud providers 😮
Just a quick heads-up for everyone having the same issue (waiting for cloud-init) Use the new remote commands (https://www.pulumi.com/blog/executing-remote-commands/)
Copy code
cloud-init status --wait
👍 1
Big thank you to all at Pulumi, for having remote commands ❤️
🎉 1
82 Views