Skip to content

Commit 2d28217

Browse files
committed
use akpdemoapps.link as root_domain
1 parent 401bcb4 commit 2d28217

2 files changed

Lines changed: 6 additions & 42 deletions

File tree

core-env/eks-clusters/main.tf

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -147,43 +147,6 @@ module "eks" {
147147
}
148148
}
149149

150-
# module "vpc_cni_irsa" {
151-
# source = "terraform-aws-modules/iam/aws//modules/iam-role-for-service-accounts-eks"
152-
# version = "~> 4.12"
153-
154-
# role_name_prefix = "VPC-CNI-IRSA"
155-
# attach_vpc_cni_policy = true
156-
# vpc_cni_enable_ipv6 = true
157-
158-
# oidc_providers = {
159-
# main = {
160-
# provider_arn = module.eks.oidc_provider_arn
161-
# namespace_service_accounts = ["kube-system:aws-node"]
162-
# }
163-
# }
164-
165-
# tags = local.tags
166-
# }
167-
168-
169-
# Expose the cluster to internet via custom domain
170-
171-
import {
172-
to = aws_route53_zone.demo_domain
173-
id = "Z01905343OT8D9ZSW46CJ"
174-
}
175-
176-
resource "aws_route53_zone" "demo_domain" {
177-
name = var.root_domain_name
178-
comment = "Please contact eddie.webbinaro@akuity.io with questions"
179-
tags = {
180-
"Owner" = var.common_tags.owner
181-
}
182-
lifecycle {
183-
prevent_destroy = true
184-
}
185-
}
186-
187150
resource "helm_release" "nginx_ingress" {
188151
name = "ingress-nginx"
189152
repository = "https://kubernetes.github.io/ingress-nginx"
@@ -201,7 +164,7 @@ resource "aws_route53_record" "records" {
201164
"*."
202165
])
203166

204-
zone_id = aws_route53_zone.demo_domain.id
167+
zone_id = var.root_domain_zone_id
205168
name = each.key
206169
type = "CNAME"
207170
ttl = 5

core-env/eks-clusters/variables.tf

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@ variable "primary_cluser_node_type" {
2323
default = "t3.large"
2424
}
2525

26-
variable "root_domain_name" {
27-
default = "demoapps.akuity.io"
28-
}
29-
3026
variable "ingress_namespace" {
3127
default = "ingress-nginx"
3228
}
29+
30+
variable "root_domain_zone_id" {
31+
default = "Z06080061D8PFBX2D8WN4"
32+
description = "akpdemoapps.link"
33+
}

0 commit comments

Comments
 (0)