From 5e65a68fe999ce5b5508faef7904f03eb3647d3f Mon Sep 17 00:00:00 2001 From: Maxime Noel Date: Fri, 6 Dec 2024 13:53:49 +1300 Subject: [PATCH] Try new method for ami image. --- backend_modules/aws/host/main.tf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/backend_modules/aws/host/main.tf b/backend_modules/aws/host/main.tf index 04a20d4c1..75bedcc6c 100644 --- a/backend_modules/aws/host/main.tf +++ b/backend_modules/aws/host/main.tf @@ -1,5 +1,10 @@ locals { - ami = lookup(lookup(var.base_configuration["ami_info"], var.image, {}), "ami", var.image) +# ami = lookup(lookup(var.base_configuration["ami_info"], var.image, {}), "ami", var.image) + ami = lookup( + lookup(var.base_configuration["ami_info"], var.image, { "ami" = var.image }), + "ami", + var.image + ) provider_settings = merge({ key_name = var.base_configuration["key_name"]