Skip to content

spotinst/terraform-spotinst-elastigroup-aws

Repository files navigation

Spot Elastigroup Terraform Module

A Terraform module to create a Spot Elastigroup in AWS.

Table of Contents

Usage

module "elastigroup-aws" {
  source = "spotinst/elastigroup-aws/spotinst"

  # Configuration.
  name                    = "terraform_test"
  subnet_ids              = ["subnet-123456789", "subnet-123456789", "subnet-123456789"]
  region                  = "us-west-2"
  security_groups         = ["sg-123456789", "sg-123456789"]
  instance_types_ondemand = "t3.large"
  instance_types_spot     = ["t3.large"]
  max_size                = 1
  image_id                = "ami-123456789"
}

Examples

Resources

This module creates and manages the following resources:

  • spotinst_elastigroup_aws

Requirements

Name Version
terraform >= 1.4.6

Providers

Name Version
spotinst >= 1.188.0

Resources

Name Type
spotinst_elastigroup_aws.this resource

Outputs

Name Description
elastigroup_id The ID of the Elastigroup

Documentation

If you're new to Spot and want to get started, please checkout our Getting Started guide, available on the Spot Documentation website.

Getting Help

We use GitHub issues for tracking bugs and feature requests. Please use these community resources for getting help:

Community

Contributing

Please see the contribution guidelines.

License

Code is licensed under the Apache License 2.0.