aws_spot_instance

aws_spot_instance

The aws_spot_instance resource enables Cluster to create customized spot instance groups.

Provision a spot instance in AWS to reduce the cost of instances. Spot instance availability is not guaranteed. Therefore, it is recommended to use aws_spot_instance_request for additional worker nodes and not for mission-critical nodes like managers and registry.

Example Usage

The following is a basic example:

resource:
  aws_spot_instance:
    workers:
      instance_type: "t2.xlarge"
      os: "Ubuntu 18.04"
      price: 0.25
      quantity: "3"

Settings

aws_spot_instance supports all of the settings for `` aws_instance with the addition of the following

Setting Type Default Description
price Float None Maximum price to bid on the spot instance