From bf19049232de12966f0c77e263618be38e55d5bb Mon Sep 17 00:00:00 2001 From: "Matthew C. Morgan" Date: Mon, 29 Jul 2024 17:37:12 -0400 Subject: [PATCH] add region --- dns-zone-cat.tf | 1 + outputs.tf | 2 +- variables.tf | 6 ++++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/dns-zone-cat.tf b/dns-zone-cat.tf index 914603d..a47bda9 100644 --- a/dns-zone-cat.tf +++ b/dns-zone-cat.tf @@ -3,6 +3,7 @@ locals { cluster_domain_description = format("%v EKS Cluster DNS Zone", var.cluster_name) # true for gov, false for cat aws_dns_infrastructure = false + region = var.region } resource "aws_route53_zone" "cluster_domain" { diff --git a/outputs.tf b/outputs.tf index a256d3c..dc00bff 100644 --- a/outputs.tf +++ b/outputs.tf @@ -47,7 +47,7 @@ output "security_group_all_worker_mgmt_id" { output "cluster_fqdn" { description = "The cluster_name.domain" - value = format("%v.%v", var.cluster_name, var.domain) + value = format("%v.%v", var.cluster_name, var.vpc_domain_name) } ################################################################################ diff --git a/variables.tf b/variables.tf index a2b71d1..7de4c47 100644 --- a/variables.tf +++ b/variables.tf @@ -107,6 +107,12 @@ variable "profile" { default = "" } +variable "region" { + description = "AWS config region" + type = string + default = "" +} + variable "aws_environment" { description = "AWS Environment (govcloud | east-west)" type = string