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

provider/aws: fix aws_route53_zone force_destroy behavior #12421

Merged
merged 1 commit into from
Apr 23, 2017

Conversation

ryane
Copy link
Contributor

@ryane ryane commented Mar 3, 2017

The conditional to ignore the deletion of NS and SOA records can fail to
match if the hostedZoneName already ends with a ".". When that happens,
terraform tries to delete those records which is not supported by AWS
and results in a 400 bad request. This fixes the conditional so that it
will work whether or not hostedZoneName ends with a ".".

fixes #12407

The conditional to ignore the deletion of NS and SOA records can fail to
match if the hostedZoneName already ends with a ".". When that happens,
terraform tries to delete those records which is not supported by AWS
and results in a 400 bad request. This fixes the conditional so that it
will work whether or not hostedZoneName ends with a ".".

fixes hashicorp#12407
@radeksimko
Copy link
Member

Hi @ryane
this is useful bugfix, thanks.

I appreciate the test modification to cover the fixed behaviour. It would be better if we covered both cases though - with and without trailing dot, to make sure we don't introduce a similar bug in the future that would break zones w/out dot.

I will send a separate patch to reflect this.


FYI: For future contributions it usually helps both the reviewer and yourself (I think 😃 ) when the PR is raised from a separate branch - not master. It's much easier to make any necessary changes without having to force-push into master and it allows you to raise multiple different PRs in isolation. 😉

@radeksimko radeksimko merged commit e2ee211 into hashicorp:master Apr 23, 2017
@ghost
Copy link

ghost commented Apr 13, 2020

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

provider/aws: aws_route53_zone with force_destroy fails to delete zone on destroy
3 participants