mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-04-10 03:03:33 +02:00
committed by
Max Williams
parent
4f3f5b6733
commit
215dc849e8
@@ -17,6 +17,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
|
|
||||||
- Updated instance_profile_names and instance_profile_arns outputs to also consider launch template as well as asg (by @ankitwal)
|
- Updated instance_profile_names and instance_profile_arns outputs to also consider launch template as well as asg (by @ankitwal)
|
||||||
- Fix deprecated interpolation-only expression (by @angelabad)
|
- Fix deprecated interpolation-only expression (by @angelabad)
|
||||||
|
- Fix broken terraform plan/apply on a cluster < 1.14 (by @hodduc)
|
||||||
|
|
||||||
# History
|
# History
|
||||||
|
|
||||||
|
|||||||
8
data.tf
8
data.tf
@@ -1,6 +1,10 @@
|
|||||||
locals {
|
locals {
|
||||||
worker_ami_name_filter = var.worker_ami_name_filter != "" ? var.worker_ami_name_filter : "amazon-eks-node-${var.cluster_version}-v*"
|
worker_ami_name_filter = var.worker_ami_name_filter != "" ? var.worker_ami_name_filter : "amazon-eks-node-${var.cluster_version}-v*"
|
||||||
worker_ami_name_filter_windows = var.worker_ami_name_filter_windows != "" ? var.worker_ami_name_filter_windows : "Windows_Server-2019-English-Core-EKS_Optimized-${var.cluster_version}-*"
|
|
||||||
|
# Windows nodes are available from k8s 1.14. If cluster version is less than 1.14, fix ami filter to some constant to not fail on 'terraform plan'.
|
||||||
|
worker_ami_name_filter_windows = (var.worker_ami_name_filter_windows != "" ?
|
||||||
|
var.worker_ami_name_filter_windows : "Windows_Server-2019-English-Core-EKS_Optimized-${tonumber(var.cluster_version) >= 1.14 ? var.cluster_version : 1.14}-*"
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
data "aws_iam_policy_document" "workers_assume_role_policy" {
|
data "aws_iam_policy_document" "workers_assume_role_policy" {
|
||||||
|
|||||||
Reference in New Issue
Block a user