revert to lookup() to match video

This commit is contained in:
Edward Viaene
2022-01-03 14:26:55 -05:00
parent 983af3b247
commit 63cb3c882c
+1 -1
View File
@@ -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"
}