Skip to content

Latest commit

 

History

History
53 lines (33 loc) · 1.29 KB

File metadata and controls

53 lines (33 loc) · 1.29 KB

Termination watcher

This module shows how to use the termination watcher stand-alone.

Usages

Ensure you have the lambda for the termination built locally. By default the one in the lambdas folder will be used.

Build lambda's (requires node and yarn).

cd lambdas
yarn install && yarn dist

Next switch to this example directory.

terraform init
terraform apply

Once a Spot instance is terminated a log line and metric will be updated. Spot instance termination can be simulated using the Amazon Fault Injection Service (FIS). In the web console you can simply initiate a spot instance failure by navigate in the EC2 console to Spot Requests and choose the action initiate a spot termination event.

Requirements

Name Version
terraform >= 1

Providers

No providers.

Modules

Name Source Version
spot_termination_watchter ../../modules/termination-watcher n/a

Resources

No resources.

Inputs

No inputs.

Outputs

No outputs.