mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-01-16 00:34:31 +01:00
fix: Update AWS provider version to support AL2023_* AMI types; ensure AL2023 user data receives cluster service CIDR (#2960)
* fix: Update AWS provider version to support `AL2023_*` AMI types * fix: Ensure the cluster service CIDR is passed to the AL2023 user data where its required
This commit is contained in:
@@ -30,9 +30,10 @@ resource "time_sleep" "this" {
|
||||
create_duration = var.dataplane_wait_duration
|
||||
|
||||
triggers = {
|
||||
cluster_name = aws_eks_cluster.this[0].name
|
||||
cluster_endpoint = aws_eks_cluster.this[0].endpoint
|
||||
cluster_version = aws_eks_cluster.this[0].version
|
||||
cluster_name = aws_eks_cluster.this[0].name
|
||||
cluster_endpoint = aws_eks_cluster.this[0].endpoint
|
||||
cluster_version = aws_eks_cluster.this[0].version
|
||||
cluster_service_cidr = var.cluster_ip_family == "ipv6" ? aws_eks_cluster.this[0].kubernetes_network_config[0].service_ipv6_cidr : aws_eks_cluster.this[0].kubernetes_network_config[0].service_ipv4_cidr
|
||||
|
||||
cluster_certificate_authority_data = aws_eks_cluster.this[0].certificate_authority[0].data
|
||||
}
|
||||
@@ -329,6 +330,7 @@ module "eks_managed_node_group" {
|
||||
cluster_endpoint = try(time_sleep.this[0].triggers["cluster_endpoint"], "")
|
||||
cluster_auth_base64 = try(time_sleep.this[0].triggers["cluster_certificate_authority_data"], "")
|
||||
cluster_service_ipv4_cidr = var.cluster_service_ipv4_cidr
|
||||
cluster_service_cidr = try(time_sleep.this[0].triggers["cluster_service_cidr"], "")
|
||||
enable_bootstrap_user_data = try(each.value.enable_bootstrap_user_data, var.eks_managed_node_group_defaults.enable_bootstrap_user_data, false)
|
||||
pre_bootstrap_user_data = try(each.value.pre_bootstrap_user_data, var.eks_managed_node_group_defaults.pre_bootstrap_user_data, "")
|
||||
post_bootstrap_user_data = try(each.value.post_bootstrap_user_data, var.eks_managed_node_group_defaults.post_bootstrap_user_data, "")
|
||||
@@ -460,6 +462,7 @@ module "self_managed_node_group" {
|
||||
platform = try(each.value.platform, var.self_managed_node_group_defaults.platform, "linux")
|
||||
cluster_endpoint = try(time_sleep.this[0].triggers["cluster_endpoint"], "")
|
||||
cluster_auth_base64 = try(time_sleep.this[0].triggers["cluster_certificate_authority_data"], "")
|
||||
cluster_service_cidr = try(time_sleep.this[0].triggers["cluster_service_cidr"], "")
|
||||
pre_bootstrap_user_data = try(each.value.pre_bootstrap_user_data, var.self_managed_node_group_defaults.pre_bootstrap_user_data, "")
|
||||
post_bootstrap_user_data = try(each.value.post_bootstrap_user_data, var.self_managed_node_group_defaults.post_bootstrap_user_data, "")
|
||||
bootstrap_extra_args = try(each.value.bootstrap_extra_args, var.self_managed_node_group_defaults.bootstrap_extra_args, "")
|
||||
|
||||
Reference in New Issue
Block a user