From fe9e2a93a35b4216bfa2520f944b4f434d62c08b Mon Sep 17 00:00:00 2001 From: Charles Bushong Date: Thu, 22 Sep 2022 14:03:29 -0400 Subject: [PATCH] Fix #2235 - Set output.image_id to be the real output of the launch template --- modules/self-managed-node-group/outputs.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/self-managed-node-group/outputs.tf b/modules/self-managed-node-group/outputs.tf index 0cfba97d25..e9f52db14f 100644 --- a/modules/self-managed-node-group/outputs.tf +++ b/modules/self-managed-node-group/outputs.tf @@ -153,7 +153,7 @@ output "platform" { output "image_id" { description = "ID of the image" - value = try(data.aws_ami.eks_default[0].image_id, "") + value = try(aws_launch_template.this[0].image_id, "") } output "user_data" {