hey folks, what is a proven-practice to wait for u...
# general
f
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
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
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
141 Views