diff --git a/_example/basic_example/example.tf b/_example/basic_example/example.tf index f48bdf6..98cf9ef 100644 --- a/_example/basic_example/example.tf +++ b/_example/basic_example/example.tf @@ -75,7 +75,7 @@ data "aws_iam_policy_document" "iam-policy" { } } -module "spot" { +module "ec2" { source = "./../../" name = "ec2" environment = "test" @@ -91,7 +91,7 @@ module "spot" { #instance instance_count = 1 ami = "ami-08d658f84a6d84a80" - instance_type = "t2.nano" + instance_type = "c4.xlarge" #Networking subnet_ids = tolist(module.public_subnets.public_subnet_id) diff --git a/_example/ebs_mount/example.tf b/_example/ebs_mount/example.tf index 75c2f42..38fe22b 100644 --- a/_example/ebs_mount/example.tf +++ b/_example/ebs_mount/example.tf @@ -90,7 +90,7 @@ module "ec2" { ssh_allowed_ports = [22] #Instance - instance_count = 2 + instance_count = 1 ami = "ami-08d658f84a6d84a80" instance_type = "t2.nano" diff --git a/_example/spot_instance/example.tf b/_example/spot_instance/example.tf index 9ee5334..bb09e85 100644 --- a/_example/spot_instance/example.tf +++ b/_example/spot_instance/example.tf @@ -78,7 +78,7 @@ data "aws_iam_policy_document" "iam-policy" { module "spot-ec2" { source = "./../../" name = "ec2" - environment = "testtt" + environment = "test" label_order = ["name", "environment"] ####---------------------------------------------------------------------------------- diff --git a/main.tf b/main.tf index d46f5c5..9d3920a 100644 --- a/main.tf +++ b/main.tf @@ -416,6 +416,4 @@ resource "aws_spot_instance_request" "default" { private_ip, ] } -} - - +} \ No newline at end of file diff --git a/variables.tf b/variables.tf index 9f39745..24f0008 100644 --- a/variables.tf +++ b/variables.tf @@ -543,7 +543,7 @@ variable "spot_ami" { variable "spot_instance_count" { type = number - default = 1 + default = 0 description = "Number of instances to launch." } @@ -555,7 +555,7 @@ variable "spot_price" { variable "spot_wait_for_fulfillment" { type = bool - default = null + default = false description = "If set, Terraform will wait for the Spot Request to be fulfilled, and will throw an error if the timeout of 10m is reached" }