From 63cb3c882c542ab40b5760c5c077124e34112adb Mon Sep 17 00:00:00 2001 From: Edward Viaene Date: Mon, 3 Jan 2022 14:26:55 -0500 Subject: [PATCH] revert to lookup() to match video --- demo-1/instance.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo-1/instance.tf b/demo-1/instance.tf index 4de24ff..16de144 100644 --- a/demo-1/instance.tf +++ b/demo-1/instance.tf @@ -1,5 +1,5 @@ resource "aws_instance" "example" { - ami = var.AMIS[var.AWS_REGION] + ami = lookup(var.AMIS, var.AWS_REGION, "") # last parameter is the default value instance_type = "t2.micro" }