Last active
May 26, 2025 10:32
-
-
Save aardbol/a023801c37c4af5f2cb0d9f3ac8f3bb6 to your computer and use it in GitHub Desktop.
Terraform get latest ubuntu LTS AWS AMI
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" "ubuntu_lts_24" { | |
most_recent = true | |
filter { | |
name = "name" | |
values = ["ubuntu/images/*/ubuntu-noble-*"] | |
} | |
filter { | |
name = "virtualization-type" | |
values = ["hvm"] | |
} | |
filter { | |
name = "architecture" | |
values = ["x86_64"] | |
} | |
owners = ["099720109477"] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment