data "aws_ami" "amazon_linux" { most_recent = true filter { name = "name" values = ["amzn2-ami-*-gp2"] } filter { name = "architecture" values = ["x86_64"] } filter { name = "virtualization-type" values = ["hvm"] } owners = ["amazon"] }