File tree Expand file tree Collapse file tree 2 files changed +16
-10
lines changed Expand file tree Collapse file tree 2 files changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -66,16 +66,17 @@ resource "null_resource" "update_cni_prifix" {
6666}
6767
6868module "eks" {
69- count = var. default_addon_enabled ? 0 : 1
70- source = " terraform-aws-modules/eks/aws"
71- version = " 19.21.0"
72- vpc_id = var. vpc_id
73- subnet_ids = var. private_subnet_ids
74- enable_irsa = true
75- cluster_name = format (" %s-%s" , var. environment , var. name )
76- create_kms_key = var. create_kms_key
77- cluster_version = var. cluster_version
78- cluster_enabled_log_types = var. cluster_log_types
69+ count = var. default_addon_enabled ? 0 : 1
70+ source = " terraform-aws-modules/eks/aws"
71+ version = " 19.21.0"
72+ vpc_id = var. vpc_id
73+ subnet_ids = var. private_subnet_ids
74+ enable_irsa = true
75+ cluster_iam_role_dns_suffix = var. cluster_iam_role_dns_suffix
76+ cluster_name = format (" %s-%s" , var. environment , var. name )
77+ create_kms_key = var. create_kms_key
78+ cluster_version = var. cluster_version
79+ cluster_enabled_log_types = var. cluster_log_types
7980 tags = {
8081 " Name" = format (" %s-%s" , var. environment , var. name )
8182 " Environment" = var.environment
Original file line number Diff line number Diff line change @@ -232,3 +232,8 @@ variable "managed_ng_pod_capacity" {
232232 default = 70
233233 type = number
234234}
235+ variable "cluster_iam_role_dns_suffix" {
236+ description = " Base DNS domain name for the current partition (e.g., amazonaws.com in AWS Commercial, amazonaws.com.cn in AWS China)"
237+ type = string
238+ default = " amazonaws.com"
239+ }
You can’t perform that action at this time.
0 commit comments