serverless_static_website_with_basic_auth icon indicating copy to clipboard operation
serverless_static_website_with_basic_auth copied to clipboard

Hard coded ZoneID

Open discointheair opened this issue 6 years ago • 1 comments

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"

discointheair avatar Sep 12 '19 15:09 discointheair

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

Gati0 avatar Mar 30 '20 19:03 Gati0