Created
January 11, 2021 10:19
-
-
Save Voronenko/cf21b752ac5f5a2fb59cdd7c63063017 to your computer and use it in GitHub Desktop.
Ami lookups
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data "aws_ami" "instance_ami" { | |
most_recent = true | |
owners = [ | |
var.ubuntu_account_number] | |
filter { | |
name = "name" | |
values = ["ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-*"] | |
} | |
} | |
variable "ubuntu_account_number" { | |
default = "099720109477" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment