From 4b5a85a23d511316c373dd98e982daa70b1d021c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Ma=C5=82ek?= Date: Sun, 24 Aug 2025 19:25:03 +0200 Subject: [PATCH] fix: Resolve issue #442 --- README.md | 6 +++--- main.tf | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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(