Switch Fedora CoreOS to new ARM64 AMIs (#1038)

* Fedora CoreOS now publishes ARM64 AMIs
This commit is contained in:
Anthony Rabbito 2021-09-12 14:49:13 -04:00 committed by GitHub
parent dae79d5916
commit c6923b9ef3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 8 deletions

View File

@ -18,15 +18,11 @@ data "aws_ami" "fedora-coreos" {
values = ["Fedora CoreOS ${var.os_stream} *"] values = ["Fedora CoreOS ${var.os_stream} *"]
} }
} }
# Experimental Fedora CoreOS arm64 / aarch64 AMIs from Poseidon
# WARNING: These AMIs will be removed when Fedora CoreOS publishes arm64 AMIs
# and may be removed for any reason before then as well. Do not use.
data "aws_ami" "fedora-coreos-arm" { data "aws_ami" "fedora-coreos-arm" {
count = var.arch == "arm64" ? 1 : 0 count = var.arch == "arm64" ? 1 : 0
most_recent = true most_recent = true
owners = ["099663496933"] owners = ["125523088429"]
filter { filter {
name = "architecture" name = "architecture"
@ -39,8 +35,7 @@ data "aws_ami" "fedora-coreos-arm" {
} }
filter { filter {
name = "name" name = "description"
values = ["fedora-coreos-*"] values = ["Fedora CoreOS ${var.os_stream} *"]
} }
} }