diff --git a/modules/infra/main.tf b/modules/infra/main.tf index d77a009..b1accd0 100644 --- a/modules/infra/main.tf +++ b/modules/infra/main.tf @@ -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" diff --git a/personal-website.auto.tfvars b/personal-website.auto.tfvars index a43ffef..2d5ab76 100644 --- a/personal-website.auto.tfvars +++ b/personal-website.auto.tfvars @@ -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" \ No newline at end of file