🌐 AI搜索 & 代理 主页
Skip to content

karlazzam/terraform-aws-ec2-spot-instance

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS EC2 Spot Instance Request Terraform module

Terraform module which creates EC2 Spot Request request(s) on AWS.

These types of resources are supported:

Usage

module "ec2_spot_cluster" {
  source = "johnypony3/ec2-spot-instance/aws"

  name  = "my-cluster"
  count = 5

  ami                    = "ami-ebd02392"
  instance_type          = "t2.micro"
  key_name               = "user1"
  monitoring             = true
  vpc_security_group_ids = ["sg-12345678"]
  spot_price             = "0.03"

  tags = {
    Terraform = "true"
    Environment = "dev"
  }
}

Examples

Limitations

  • network_interface can't be specified together with associate_public_ip_address, which makes network_interface not configurable using this module at the moment

Authors

Module based on the work of Anton Babenko. Written and managed by johnypony3 License

Apache 2 Licensed. See LICENSE for full details.

About

Terraform module which creates EC2 spot instance(s) on AWS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HCL 100.0%