Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hard coded ZoneID #16

Open
discointheair opened this issue Sep 12, 2019 · 1 comment
Open

Hard coded ZoneID #16

discointheair opened this issue Sep 12, 2019 · 1 comment

Comments

@discointheair
Copy link

discointheair commented Sep 12, 2019

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"

@Gati0
Copy link

Gati0 commented Mar 30, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants