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

Delete hosted zone and its records correctly #86

Merged
merged 1 commit into from Jan 8, 2020

Conversation

itkq
Copy link
Contributor

@itkq itkq commented Dec 27, 2019

When I tried to delete hosted zone, I got the following error.

$ roadwork -a --dry-run --target '^foo.bar$' --force
Apply `Routefile` to Route53 (dry-run)
Delete Hostedzone: foo.bar. (dry-run)
[ERROR] NoMethodError: undefined method `delete' for #<Aws::Route53::Types::ResourceRecordSet:0x00007ff81a9a3278>

ResourceRecordSetWrapper#delete was removed in a3876f6#diff-f8d164d49d5178a7c052045f1e269148.

So I changed to submit a batch request to delete records associated with
the target hosted zone as well.

@sorah Could you review?

When I tried to delete hosted zone, I got the following error.

```
$ roadwork -a --dry-run --target '^foo.bar$' --force
Apply `Routefile` to Route53 (dry-run)
Delete Hostedzone: foo.bar. (dry-run)
[ERROR] NoMethodError: undefined method `delete' for #<Aws::Route53::Types::ResourceRecordSet:0x00007ff81a9a3278>
```

ResourceRecordSetWrapper#delete was removed in codenize-tools@a3876f6#diff-f8d164d49d5178a7c052045f1e269148.

So I changed to submit a batch request to delete records associated with
the target hosted zone as well.
@itkq itkq merged commit 0a54b70 into codenize-tools:master Jan 8, 2020
@itkq itkq deleted the delete-hosted-zone-correctly branch January 8, 2020 06:01
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

Successfully merging this pull request may close these issues.

None yet

2 participants