cloudmaniac / terraform-aws-static-website

Terraform Module to provision an AWS static website using Route53, S3, and CloudFront.
https://registry.terraform.io/modules/cloudmaniac/static-website/aws/
MIT License
48 stars 38 forks source link

Error: no matching Route53Zone found #6

Closed tim-hub closed 3 years ago

tim-hub commented 3 years ago

Error: no matching Route53Zone found

on .terraform/modules/aws_static_website/main.tf line 13, in data "aws_route53_zone" "main": 13: data "aws_route53_zone" "main" {

cloudmaniac commented 3 years ago

Could you provide some additional information? E.g.:

Thx!

tim-hub commented 3 years ago

Could you provide some additional information? E.g.:

* what did you provided for the `website-domain-main` variable?

* is the domain already configured as a hosted zone on Route53?

* can you do a `terraform version` in the relevant directory and let me know the output?

Thx!

no I did not do that

tim-hub commented 3 years ago

I do not even I need that

tim-hub commented 3 years ago

version is 2.70

tim-hub commented 3 years ago

do I have to do is the domain already configured as a hosted zone on Route53? manually?

cloudmaniac commented 3 years ago

Yes, you need an already configured domain in Route53, and you submit the domain name as an input variable to the module. This is mentioned and described in the README / documentation.