data "aws_ami" "server" { owners = ["self"] filter { name = "name" values = [data.external.env.result.AMI_NAME] } }