NOTE: This repo contains only the documentation for the private BoltsOps Pro repo code. Original file: https://github.com/boltopspro/ecs-spot-termination/blob/master/README.md The docs are publish so they are available for interested customers. For access to the source code, you must be a paying BoltOps Pro subscriber. If are interested, you can contact us at email@example.com or https://www.boltops.com
This configset installs a spot termination script that will continuously run and monitor for the spot two-minute warning. Upon seeing the two-minute warning, it will drain the instance from the ECS Cluster.
What are lono configsets?
Add to project Gemfile:
git "ecs-spot-termination", git: "firstname.lastname@example.org:boltopspro/ecs-spot-termination"
configset to enable the configset for the blueprint. Example:
configset("ecs-spot-termination", resource: "SpotFleet")
This adds the configset to the
resource with the logical id
SpotFleet in your CloudFormation template. The configset is added to the Resources["SpotFleet"].Metadata.AWS::CloudFormation::Init attribute of the
SpotFleet resource. You can confirm that it'll be used with the lono configsets BLUEPRINT command.
lono configsets demo