New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace lifecycled without SNS/SQS #135
Conversation
9fd4a10
to
23ae9f0
Compare
@@ -442,22 +466,28 @@ Resources: | |||
06-run-bootstrap-script: | |||
test: test -n "$(BootstrapScriptUrl)" | |||
command: | | |||
#!/bin/bash -euo pipefail |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(This option caused an error for me)
23ae9f0
to
19cfbc1
Compare
Fixes #130 |
Stack JSON URL: |
5cdf282
to
6a7e3f8
Compare
:( |
Sorry @lox! Turns out you can do a Which means you can just poll your own state to see the state change. |
@@ -428,7 +428,7 @@ Resources: | |||
--query AutoScalingInstances[].LifecycleState --output text)" | |||
logger -t lifecycled "Lifecycle state for \$INSTANCE_ID: \$LIFECYCLE_STATE" | |||
if [[ "\$LIFECYCLE_STATE" == "Terminating:Wait" ]]; then | |||
logger -t lifecycled "Time to shut it all down!" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh sorry, this would have broken. Woops!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh no, it did work in the example. Perhaps it's too enthusiastic, though.
Rolling updates work AOK, scaling up and down works AOK. I think this is good to 🚀 |
f0454e1
to
285bdc0
Compare
This seems to be working well 👍 |
These appear to be vestigial since we no longer use SNS/SQS queue for agent lifecycle operations when we removed that for LifecycleD in #135.
We've had some trouble with SQS lifecycle handling, so we can try something a little less sophisticated and POLL FOR GREAT JUSTICE. Maybe. Haha.
It definitely works: