-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24646 from ministryofjustice/add-hosted-zone-for-…
…find-moj-data-prod Create hosted zone for find-moj-data prod namespace
- Loading branch information
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
...oud-platform.service.justice.gov.uk/data-platform-find-moj-data-prod/resources/route53.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
resource "aws_route53_zone" "find_moj_data_prod_zone" { | ||
name = var.domain | ||
|
||
tags = { | ||
team_name = var.team_name | ||
business-unit = var.business_unit | ||
application = var.application | ||
is-production = var.is_production | ||
environment-name = var.environment | ||
owner = var.team_name | ||
infrastructure_support = var.infrastructure_support | ||
namespace = var.namespace | ||
} | ||
} | ||
|
||
resource "kubernetes_secret" "find_moj_data_prod_route53_zone_sec" { | ||
metadata { | ||
name = "find-moj-data-prod-route53-zone-output" | ||
namespace = var.namespace | ||
} | ||
|
||
data = { | ||
zone_id = aws_route53_zone.find_moj_data_prod_zone.zone_id | ||
nameservers = join("\n", aws_route53_zone.find_moj_data_prod_zone.name_servers) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters