Skip to content

Commit ae60f5b

Browse files
Adding private zone for route53
1 parent 5d15486 commit ae60f5b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ locals {
135135

136136
data "aws_route53_zone" "this" {
137137
count = local.create_domain_name && var.create_domain_records ? 1 : 0
138-
138+
private_zone = var.private_zone
139139
name = coalesce(var.hosted_zone_name, local.stripped_domain_name)
140140
}
141141

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,12 @@ variable "hosted_zone_name" {
156156
default = null
157157
}
158158

159+
variable "private_zone" {
160+
description = "Whether the hosted zone is private or not"
161+
type = bool
162+
default = false
163+
}
164+
159165
variable "domain_name_certificate_arn" {
160166
description = "The ARN of an AWS-managed certificate that will be used by the endpoint for the domain name. AWS Certificate Manager is the only supported source"
161167
type = string

0 commit comments

Comments
 (0)