Skip to content

Commit

Permalink
[DEV-1394] - Create DNS zone for CMS Strapi (#640)
Browse files Browse the repository at this point in the history
* add-dns-zone-and-var-for-strapi

add-dns-zone-and-var-for-strapi

* update-comment
  • Loading branch information
maurodandrea authored Feb 14, 2024
1 parent acd8fdb commit 4a9f40a
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .infrastructure/10_dns.tf
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,9 @@ resource "aws_route53_record" "devportal_google_site_verification_txt" {
records = ["google-site-verification=Z94dFrXZD0YqP-r5BY5ODb4NsbQBAggTGRZM9fNtOj0"]
ttl = 3600
}

## Route53 DNS zone and Records for CMS Strapi
module "dns_zone_cms" {
source = "git::https://github.com/terraform-aws-modules/terraform-aws-route53.git//modules/zones?ref=bc63328714550fd903d2574b263833c9ce1c867e" # v2.11.0
zones = var.dns_domain_name_cms
}
7 changes: 7 additions & 0 deletions .infrastructure/98_variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,10 @@ variable "cms_app_port" {
description = "The standard app port used by CMS Strapi"
default = 1337
}

# CMS Strapi DNS
variable "dns_domain_name_cms" {
description = "DNS domain name of the Developer Portal's CMS"
type = map(any)
default = null
}
7 changes: 7 additions & 0 deletions .infrastructure/env/dev/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,10 @@ cdn_custom_headers = [
dns_domain_name = "dev.developer.pagopa.it"

use_custom_certificate = true

# CMS Strapi DNS
dns_domain_name_cms = {
"cms.dev.developer.pagopa.it" = {
comment = "DNS domain name of the Developer Portal's CMS"
}
}
7 changes: 7 additions & 0 deletions .infrastructure/env/prod/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,10 @@ dns_delegate_records = {
}

use_custom_certificate = true

# CMS Strapi DNS
dns_domain_name_cms = {
"cms.developer.pagopa.it" = {
comment = "DNS domain name of the Developer Portal's CMS"
}
}

0 comments on commit 4a9f40a

Please sign in to comment.