Skip to content

Commit

Permalink
EHD-1518: Switch over Live service: Terraform: Create Prod environmen…
Browse files Browse the repository at this point in the history
…t (except for the CloudFront and DNS record for the main app)
  • Loading branch information
jamesgriff committed Feb 12, 2025
1 parent 8d9abec commit da44014
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
16 changes: 8 additions & 8 deletions terraform/cloudfront.tf
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ resource "aws_cloudfront_distribution" "distribution" {

price_class = "PriceClass_100"

aliases = ["${var.dns_record_subdomain_including_dot}${data.aws_route53_zone.route_53_zone_for_our_domain.name}"]

viewer_certificate {
acm_certificate_arn = aws_acm_certificate_validation.certificate_validation_waiter.certificate_arn
cloudfront_default_certificate = false
minimum_protocol_version = "TLSv1"
ssl_support_method = "sni-only"
}
# aliases = ["${var.dns_record_subdomain_including_dot}${data.aws_route53_zone.route_53_zone_for_our_domain.name}"]
#
# viewer_certificate {
# acm_certificate_arn = aws_acm_certificate_validation.certificate_validation_waiter.certificate_arn
# cloudfront_default_certificate = false
# minimum_protocol_version = "TLSv1"
# ssl_support_method = "sni-only"
# }

enabled = true
is_ipv6_enabled = true
Expand Down
9 changes: 9 additions & 0 deletions terraform/prod.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

environment = "Prod"
environment_hyphens = "Prod"

create_dns_record = false
dns_record_subdomain_including_dot = ""

create_redirect_from_www_domain = true
dns_record_www_domain_including_dot = "www."

0 comments on commit da44014

Please sign in to comment.