From 5aa797ad8c9ca6799104d5e18482e765c4e32088 Mon Sep 17 00:00:00 2001 From: LongKB Date: Thu, 25 Sep 2025 16:22:24 +0700 Subject: [PATCH 1/2] add name and instance_type as output --- outputs.tf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/outputs.tf b/outputs.tf index 4b3292fa..d830a601 100644 --- a/outputs.tf +++ b/outputs.tf @@ -13,6 +13,16 @@ output "arn" { ) } +output "name" { + description = "The name of the instance" + value = var.name +} + +output "instance_type" { + description = "The type of the instance" + value = var.instance_type +} + output "capacity_reservation_specification" { description = "Capacity reservation specification of the instance" value = try( From 5ea2550767bab4c27e392888bf0c9f233368951f Mon Sep 17 00:00:00 2001 From: LongKB Date: Thu, 25 Sep 2025 16:33:39 +0700 Subject: [PATCH 2/2] update doc --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 21ed8faa..b4d75f37 100644 --- a/README.md +++ b/README.md @@ -288,6 +288,8 @@ No modules. |------|-------------| | [ami](#output\_ami) | AMI ID that was used to create the instance | | [arn](#output\_arn) | The ARN of the instance | +| [name](#output\_name) | The name of the instance | +| [instance_type](#output\_instance_type) | The type of the instance | | [availability\_zone](#output\_availability\_zone) | The availability zone of the created instance | | [capacity\_reservation\_specification](#output\_capacity\_reservation\_specification) | Capacity reservation specification of the instance | | [ebs\_block\_device](#output\_ebs\_block\_device) | EBS block device information |