Skip to content

Public documentation for boltopspro/ecs-spot-termination

License

Notifications You must be signed in to change notification settings

boltops-pro-docs/ecs-spot-termination

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 contact@boltops.com or https://www.boltops.com

ecs-spot-termination configset

CodeBuild

BoltOps Badge

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?

Lono configsets allow CloudFormation cfn-init configsets that are typically embedded in the template to be reusable. More info: Lono Configsets docs.

Usage

Add to project Gemfile:

git "ecs-spot-termination", git: "git@github.com:boltopspro/ecs-spot-termination"

Use configset to enable the configset for the blueprint. Example:

configs/demo/configsets/base.rb:

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

About

Public documentation for boltopspro/ecs-spot-termination

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages