resource "aws_instance" "example" { ami = lookup(var.AMIS, var.AWS_REGION, "") # last parameter is the default value instance_type = "t3.micro" }