Skip to content

Instantly share code, notes, and snippets.

@Artemu
Created May 1, 2019 13:07
Show Gist options
  • Save Artemu/a66a542b4ee0290d1d9e3c5c95d3dc9c to your computer and use it in GitHub Desktop.
Save Artemu/a66a542b4ee0290d1d9e3c5c95d3dc9c to your computer and use it in GitHub Desktop.
Modification for EKS Data Source
data "aws_ami" "eks_worker" {
most_recent = true
filter {
name = "name"
values = ["amazon-eks-node-*"]
}
filter {
name = "virtualization-type"
values = ["hvm"]
}
filter {
name = "architecture"
values = ["x86_64"]
}
most_recent = true
owners = ["602401143452"] # Amazon
}
@Artemu
Copy link
Author

Artemu commented May 1, 2019

filter {
    name = "architecture"
    values = ["x86_64"]
  }

Will prevent ARM being chosen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment