Skip to content

Commit

Permalink
feat: update certificate arn and add www as alias in cdn resource
Browse files Browse the repository at this point in the history
  • Loading branch information
ettoreciarcia committed Sep 5, 2024
1 parent a63faac commit bc70ce2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/infra/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ module "cdn_website" {
source = "terraform-aws-modules/cloudfront/aws"
version = "2.9.3"

aliases = [var.domain_name]
aliases = [var.domain_name, "www.${var.domain_name}"]
enabled = true
is_ipv6_enabled = true
price_class = "PriceClass_All"
Expand Down
2 changes: 1 addition & 1 deletion personal-website.auto.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ region = "eu-west-1"
application_name = "personal-website"
bucket_suffix = "ciarcia"
environment = "prod"
acm_certificate_arn = "arn:aws:acm:us-east-1:860443674636:certificate/71837f13-675d-474a-9adc-1710a69da388"
acm_certificate_arn = "arn:aws:acm:us-east-1:860443674636:certificate/179e49d6-9330-4bb4-9d62-bb53ead3cbc1"
domain_name = "ettoreciarcia.com"
route53_zone_id = "Z04217553VJM3IP6I6W8T"

0 comments on commit bc70ce2

Please sign in to comment.