Skip to content

Commit

Permalink
add region
Browse files Browse the repository at this point in the history
  • Loading branch information
morga471 committed Jul 30, 2024
1 parent 2b8453c commit bf19049
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions dns-zone-cat.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down
2 changes: 1 addition & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

################################################################################
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bf19049

Please sign in to comment.