Skip to content

mats16/ecs-spot-deregister

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

※ This project is moved to awslabs/ec2-spot-labs.

Auto Deregistration EC2 Spot Instances from ECS Cluster

Example AWS CloudFormation template for deregistration from Amazon ECS Cluster for Amazon EC2 Spot Instances via Amazon CloudWatch Events & AWS Lambda.

Getting Started

This CloudFormation template will deploy a rule of CloudWatch Events and a Lambda function with IAM Role. When CloudWatch Events catch EC2 Spot Instance termination notice, Lambda function hooked automatically deregister the ECS container instances from ECS Cluster. You can use this template independently.

Architecture

ecs-spot-deregister

Prerequisites

Nothing. Lambda function searches target ECS Cluster automatically.

Pricing

AWS CloudFormation is a free service; however, you are charged for the AWS resources you include in your stacks at the current rates for each. For more information about AWS pricing, go to the detail page for each product on http://aws.amazon.com.

Deployment

After signing up for an AWS account, you can use AWS CloudFormation through the AWS Management Console, AWS CloudFormation API, or AWS CLI.

Use the template to create a CloudFormation stack.

You can learn more about working with CloudFormation stacks here.

AWS services used

Authors

About

EC2 Spot Instances auto-deregister from ECS cluster.

Resources

License

Code of conduct

Contributing

Stars

3 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors