Giter Club home page Giter Club logo

terraform-spotinst-ecs-elastigroup's Introduction

terraform-aws-elastigroup

A terraform module containing a common configuration for a spotinst elastigroup with necessary IAM permissions to access AWS account.

Assumptions

  • You wanted to use spotinst ECS integration with your ECS cluster.
  • You wanted to use spotinst ECS autoscaling feature.
  • You have already integrated spotinst with your AWS account.
  • You have all necessary resources like VPC, subnets, security groups etc.

Usage example

module "spotinst" {
  source           = "./modules/elastigroup"
  spotinst_account = "<account-id>"
  spotinst_token   = "<token-here>"
}

module "iam-role" {
  source = "./modules/iam"
}

Inputs

Name Description Type Default Required
ecs_cluster_name ECS cluster name string testing yes
region Region name string us-east-1 yes
min_capacity Region name string 0 yes
max_capacity Region name string 5 yes
desired_capacity Region name number 1 yes
instance_types_ondemand AMI ID string t2.micro yes
instance_types_preferred_spot AMI ID list t2.micro yes
instance_types_spot AMI ID list t2.micro,t3.micro yes
fallback_to_ondemand If enabled, Unavailability of spot will be coved by on-demand. string yes yes
wait_for_capacity Minimum number of instances in a 'HEALTHY' status that is required before continuing number us-east-1 yes
wait_for_capacity_timeout Time (seconds) to wait for instances to report a 'HEALTHY' status. number 300 yes
subnet_ids subnet ids for the ec2 instances List subnet-0daefb56, subnet-1759c972 yes

terraform-spotinst-ecs-elastigroup's People

Contributors

ethicalmohit avatar

Watchers

 avatar

Forkers

ryanoatz99

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.