mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-11 21:11:32 +01:00
Adding optional name filter variable to be able to pin worker AMI to a release
This commit is contained in:
6
data.tf
6
data.tf
@@ -18,11 +18,13 @@ data "aws_iam_policy_document" "workers_assume_role_policy" {
|
||||
data "aws_ami" "eks_worker" {
|
||||
filter {
|
||||
name = "name"
|
||||
values = ["amazon-eks-node-${var.cluster_version}-v*"]
|
||||
values = ["amazon-eks-node-${var.cluster_version}-${var.worker_ami_name_filter}"]
|
||||
}
|
||||
|
||||
most_recent = true
|
||||
owners = ["602401143452"]
|
||||
|
||||
# Owner ID of AWS EKS team
|
||||
owners = ["602401143452"]
|
||||
}
|
||||
|
||||
data "aws_iam_policy_document" "cluster_assume_role_policy" {
|
||||
|
||||
Reference in New Issue
Block a user