Hard coded ZoneID
Hi
Thank you for your project.
Hard coded IDs here: /CloudFormation/serverless_static_website_with_basic_auth.yaml HostedZoneId: Z2FDTNDATAQYW2
and here: /Terraform/modules/serverless-static-website-with-basic-auth/main.tf zone_id = "Z2FDTNDATAQYW2"
For Terraform it could be zone_id = aws_cloudfront_distribution.serverless_website_distribution.hosted_zone_id but for CloudFront distributions, the value is always Z2FDTNDATAQYW2.
"Specify Z2FDTNDATAQYW2. This is always the hosted zone ID when you create an alias record that routes traffic to a CloudFront distribution. "
Source : https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-aliastarget.html