-
Notifications
You must be signed in to change notification settings - Fork 284
Replace lifecycled and self-termination with ASG lifecycle hooks #964
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
Closed
Closed
Changes from 22 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
da91dd9
Add MaxInstanceLifetime
nitrocode 155478b
Remove extra spacing
nitrocode 62c209b
Merge branch 'master' into MaxInstanceLifetime
nitrocode d06ab5e
Merge branch 'master' into MaxInstanceLifetime
nitrocode 913a1b1
Remove disconnect after idle setting
keithduncan b458f03
Remove terminate instance after agent exit
keithduncan 3fca7f3
Bump agent scaler and enable scale in
keithduncan be157f4
Remove lifecycled
keithduncan 3a259c7
Don't start the agent on boot
keithduncan 974946d
Remove scale in protection
keithduncan 462623d
Remove AZ rebalance suspension lambda
keithduncan 51188df
Add skeleton of hooks and lambdas to respond to them
keithduncan bb40e70
Give instances permission to complete lifecycle actions
keithduncan 5a23ec2
Make the terminate hook continue by default
keithduncan 9b72181
Fix typo in SSM IAM action
keithduncan 921301a
Remove lambdas
keithduncan ba2fd09
Add an SSM role and boot hook automation
keithduncan 9268219
Remove instance permission to complete lifecycle actions
keithduncan 9700a02
Add a terminate instance ssm automation
keithduncan 42d6860
Move the automation role
keithduncan aa1deb9
Add EventBridge rules to route ASG lifecycle events to the SSM automa…
keithduncan 56ae297
Add account id field to the ssm document ARN
keithduncan 5244f5d
Add ssm:CreateDocument permission to the service role
keithduncan a02572f
Fix capitalisation of the SSM document aws:runCommand
keithduncan c1f101e
Add more ssm document permissions
keithduncan 448e169
Add tag actions
keithduncan 22fa12b
Make systemctl stop wait 1 hour for the process to exit
keithduncan 63e9a79
Fix event pattern structure
keithduncan 223cb37
Add missing iam permission
keithduncan d1c312b
Strings strings strings
keithduncan 624ea72
Add more automation role iam requirements
keithduncan 8bb0941
Add windows support for ssm automations
keithduncan ca1e1c4
Limit the event match to the specific hook we have created
keithduncan 1352c0d
Make the rules for boot and automation depend on the hooks
keithduncan 8ae7f15
Add a spot interruption rule and automation that terminates the instance
keithduncan d839604
Fix reference to the shutdown hook from the shutdown rule
keithduncan c1b4421
Make the windows ssm start command timeout 10 minutes
keithduncan 5675c98
Add comment to spot interruption event schema
keithduncan d48e9a0
Remove auto scaling group name from the TerminateInstanceInAutoScalin…
keithduncan 2d30b78
Merge remote-tracking branch 'nitrocode/MaxInstanceLifetime' into kei…
keithduncan d50bb4b
Enable capacity rebalancing
keithduncan b4dde06
Give the automation role permission to invoke autoscaling:TerminateIn…
keithduncan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Will need a story for this