diff --git a/README.md b/README.md index 850b7371..21ed8faa 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ module "ec2_instance" { name = "single-instance" - instance_type = "t2.micro" + instance_type = "t3.micro" key_name = "user1" monitoring = true subnet_id = "subnet-eddcdzz4" @@ -36,7 +36,7 @@ module "ec2_instance" { name = "instance-${each.key}" - instance_type = "t2.micro" + instance_type = "t3.micro" key_name = "user1" monitoring = true subnet_id = "subnet-eddcdzz4" @@ -60,7 +60,7 @@ module "ec2_instance" { spot_price = "0.60" spot_type = "persistent" - instance_type = "t2.micro" + instance_type = "t3.micro" key_name = "user1" monitoring = true subnet_id = "subnet-eddcdzz4" diff --git a/main.tf b/main.tf index b116b406..39b3e235 100644 --- a/main.tf +++ b/main.tf @@ -10,7 +10,7 @@ locals { instance_tags = merge( var.tags, var.instance_tags, - { "Name" = var.name }, + var.name != "" ? { "Name" = var.name } : {} ) instance_id = try(