-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
New Resource: aws_route53_vpc_association_authorization #14215
New Resource: aws_route53_vpc_association_authorization #14215
Conversation
* If cross_account = true in resource_aws_route53_zone_association we don't try to read the current state of the account. * If cross_account = true we use the error message of the association call to verify the association succeded.
Marking this for right after we complete our work for 3.0 in the next week or two, although review cycles might make it slightly after 3.1 for actual release. 👍 |
68df933
to
0a8d5bd
Compare
Is this going to make it to 2.x as well? |
@gazoakley appreciate you picking this up. Looking over this now and looks good so far, will dig into it more shortly though. |
I think there may be some stuff in the docs that may be obsolete with this change. Probably worth looking over that briefly as well. |
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.
Hi @gazoakley 👋 Thank you for continuing this work. This is looking good so far. I left some initial feedback below. Please reach out with any questions or if you do not have time to implement the items.
website/docs/r/route53_vpc_association_authorization.html.markdown
Outdated
Show resolved
Hide resolved
Just fyi made a rebased version of this branch here, mostly just because that's easier to work with locally (been running into issues where some changes don't seem to show UI, so trying to not rely on that for now). No real difference other than that though. |
…nfig to Terraform 0.12 format
Reference: #10333 Reference: #13527 Reference: #13826 Reference: #14215 Changes: * Add disappears testing to aws_route53_vpc_association_authorization. * Ensure aws_route53_vpc_association_authorization example shows implicit ordering for downstream aws_route53_zone_association usage * Fix aws_route53_zone_association VPC Region handling by including it in the ID, falling back to the attribute state, or falling back to the provider region. Document additional import handling. * Add aws_route53_zone_association error handling to remove resource from state. * Standardize aws_route53_zone_association disappears testing. Output from acceptance testing: ``` --- PASS: TestAccAWSRoute53VpcAssociationAuthorization_disappears (110.26s) --- PASS: TestAccAWSRoute53VpcAssociationAuthorization_basic (113.19s) --- PASS: TestAccAWSRoute53ZoneAssociation_CrossAccount (211.48s) --- PASS: TestAccAWSRoute53ZoneAssociation_CrossRegion (275.34s) --- PASS: TestAccAWSRoute53ZoneAssociation_disappears_Zone (280.22s) --- PASS: TestAccAWSRoute53ZoneAssociation_disappears (281.72s) --- PASS: TestAccAWSRoute53ZoneAssociation_disappears_VPC (281.85s) --- PASS: TestAccAWSRoute53ZoneAssociation_basic (283.83s) ```
Thanks so much @gazoakley 👍 I was able to resolve the remaining test failures with some additional error and VPC region attribute handling. |
This has been released in version 3.1.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
This PR builds on awesome prior work by @RyanJarv (I've retained the original commits for posterity) and adds support for the new
ListHostedZonesByVPC
API function - this allows Terraform to check if the resource is present or not.Closes #384
Closes #12362
Release note for CHANGELOG:
Output from acceptance testing: