-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
don't fail if parent_zone_name is not provided #51
don't fail if parent_zone_name is not provided #51
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This changeset results in route53 zones such as:
# module.domain.aws_route53_zone.default[0] will be created
+ resource "aws_route53_zone" "default" {
+ arn = (known after apply)
+ comment = "Managed by Terraform"
+ force_destroy = false
+ id = (known after apply)
+ name = "test-domain.no_parent_zone_name"
We don't want the trailing .no_parent_zone_name
.
Please see suggestions.
Also, please add another test for no parent zone.
This Pull Request has been updated, so we're dismissing all reviews.
I'll be able to add another test sometime this week. |
This pull request is now in conflict. Could you fix it @kevcube? 🙏 |
89ed1e9
to
0e4597d
Compare
@korenyoni test added, please re-review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kevcube thank you, please see comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kevcube thank you, please see comments
@aknysh done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep @aknysh saw that one too. I added a new terra test file for this new example. |
/test all |
@kevcube please see this error https://github.com/cloudposse/actions/runs/7033187015?check_suite_focus=true |
@aknysh I think I've fixed it |
/test all |
@kevcube please review the error https://github.com/cloudposse/actions/runs/7083410947?check_suite_focus=true, thank you |
@aknysh 🤦 that one's fixed now! |
/test all |
/test all |
@aknysh I think it's fixed now. |
/test all |
2 similar comments
/test all |
/test all |
* don't fail if parent_zone_name is not provided * Apply suggestions from code review * Reconciled with latest master Co-authored-by: Jon Bogaty <[email protected]> Co-authored-by: Yonatan Koren <[email protected]> * PR feedback * add test with no parent zone * make number from bools * Auto Format * match main * change region * upd region * actually add tests * fix bool cast * fix required var * parent_zone record false * fix example Co-authored-by: Jon Bogaty <[email protected]> Co-authored-by: Yonatan Koren <[email protected]> Co-authored-by: cloudpossebot <[email protected]>
* don't fail if parent_zone_name is not provided * Apply suggestions from code review * Reconciled with latest master Co-authored-by: Jon Bogaty <[email protected]> Co-authored-by: Yonatan Koren <[email protected]> * PR feedback * add test with no parent zone * make number from bools * Auto Format * match main * change region * upd region * actually add tests * fix bool cast * fix required var * parent_zone record false * fix example Co-authored-by: Jon Bogaty <[email protected]> Co-authored-by: Yonatan Koren <[email protected]> Co-authored-by: cloudpossebot <[email protected]>
what
var.parent_zone_name
is not required by the module as of Adds flag for disabling parent zone record creation + context.tf upgrade #33, let the module work if it's not provided.why
INSTEAD OF...
alternatives considered
var.parent_zone_id
orvar.parent_zone_name
because offering both can lead to conflict or confusion. Ifvar.parent_zone_id
is removed, then we can always rely onvar.parent_zone_name
instead of coalescing with the output of thedata.aws_route53_zone.parent_zone