Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions infrastructure/stacks/account_wide/route53.tf
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
# Create root zone hosted in mgmt account
resource "aws_route53_zone" "root_zone" {
# checkov:skip=CKV2_AWS_38: TODO NPT-1102
# checkov:skip=CKV2_AWS_39: TODO NPT-1102
count = var.environment == "mgmt" ? 1 : 0
name = var.root_domain_name
}

# Create child zone hosted in each other accounts
resource "aws_route53_zone" "environment_zone" {
# checkov:skip=CKV2_AWS_38: TODO NPT-1102
# checkov:skip=CKV2_AWS_39: TODO NPT-1102
count = var.environment == "mgmt" ? 0 : 1
name = local.env_domain_name
}
Expand Down
Loading