Skip to content

Commit

Permalink
Merge pull request #24646 from ministryofjustice/add-hosted-zone-for-…
Browse files Browse the repository at this point in the history
…find-moj-data-prod

Create hosted zone for find-moj-data prod namespace
  • Loading branch information
MatMoore authored Jul 23, 2024
2 parents 282b17f + 6ec2f8e commit 84ebda6
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
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)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,8 @@ variable "github_token" {

variable "eks_cluster_name" {
}

variable "domain" {
default = "find-moj-data.service.justice.gov.uk"
type = string
}

0 comments on commit 84ebda6

Please sign in to comment.