Skip to content

Commit 0d33012

Browse files
authored
Merge pull request #31 from amanravi-squareops/main
cluster_iam_role_dns_suffix variable added
2 parents 4ffe046 + 15419e6 commit 0d33012

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

main.tf

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,17 @@ resource "null_resource" "update_cni_prifix" {
6666
}
6767

6868
module "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

variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
}

0 commit comments

Comments
 (0)