Skip to content

Commit

Permalink
Merge pull request #31 from amanravi-squareops/main
Browse files Browse the repository at this point in the history
cluster_iam_role_dns_suffix variable added
  • Loading branch information
Ajay-sops authored Apr 18, 2024
2 parents 4ffe046 + 15419e6 commit 0d33012
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
21 changes: 11 additions & 10 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,17 @@ resource "null_resource" "update_cni_prifix" {
}

module "eks" {
count = var.default_addon_enabled ? 0 : 1
source = "terraform-aws-modules/eks/aws"
version = "19.21.0"
vpc_id = var.vpc_id
subnet_ids = var.private_subnet_ids
enable_irsa = true
cluster_name = format("%s-%s", var.environment, var.name)
create_kms_key = var.create_kms_key
cluster_version = var.cluster_version
cluster_enabled_log_types = var.cluster_log_types
count = var.default_addon_enabled ? 0 : 1
source = "terraform-aws-modules/eks/aws"
version = "19.21.0"
vpc_id = var.vpc_id
subnet_ids = var.private_subnet_ids
enable_irsa = true
cluster_iam_role_dns_suffix = var.cluster_iam_role_dns_suffix
cluster_name = format("%s-%s", var.environment, var.name)
create_kms_key = var.create_kms_key
cluster_version = var.cluster_version
cluster_enabled_log_types = var.cluster_log_types
tags = {
"Name" = format("%s-%s", var.environment, var.name)
"Environment" = var.environment
Expand Down
5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -232,3 +232,8 @@ variable "managed_ng_pod_capacity" {
default = 70
type = number
}
variable "cluster_iam_role_dns_suffix" {
description = "Base DNS domain name for the current partition (e.g., amazonaws.com in AWS Commercial, amazonaws.com.cn in AWS China)"
type = string
default = "amazonaws.com"
}

0 comments on commit 0d33012

Please sign in to comment.