mirror of
https://github.com/puppetmaster/typhoon.git
synced 2024-12-25 17:39:33 +01:00
343db5b578
* CoreOS Container Linux was deprecated in v1.18.3 (May 2020) in favor of Fedora CoreOS and Flatcar Linux. CoreOS Container Linux references were kept to give folks more time to migrate, but AMIs have now been deleted. Time is up. Rel: https://coreos.com/os/eol/
28 lines
466 B
HCL
28 lines
466 B
HCL
locals {
|
|
# Pick a Flatcar Linux AMI
|
|
# flatcar-stable -> Flatcar Linux AMI
|
|
ami_id = data.aws_ami.flatcar.image_id
|
|
channel = split("-", var.os_image)[1]
|
|
}
|
|
|
|
data "aws_ami" "flatcar" {
|
|
most_recent = true
|
|
owners = ["075585003325"]
|
|
|
|
filter {
|
|
name = "architecture"
|
|
values = ["x86_64"]
|
|
}
|
|
|
|
filter {
|
|
name = "virtualization-type"
|
|
values = ["hvm"]
|
|
}
|
|
|
|
filter {
|
|
name = "name"
|
|
values = ["Flatcar-${local.channel}-*"]
|
|
}
|
|
}
|
|
|