alestic / aws-route53-wipe-hosted-zone

Delete an Amazon Route 53 Hosted Zone with all contained Record Sets
Apache License 2.0
28 stars 10 forks source link

Not working on Debian buster/bullseye #5

Open izghitu opened 1 year ago

izghitu commented 1 year ago

Hi,

I tried your script on Debian buster/bullseye and I am getting the following:

[root@monitor:~/playground/aws-route53-wipe-hosted-zone/bin]# ./aws-route53-wipe-hosted-zone domain.com
DESTROYING: domain.com in Route 53
hosted_zone_id=/hostedzone/Z020468536DEIBVVPL5NK
./aws-route53-wipe-hosted-zone: line 27: [: too many arguments

An error occurred (InvalidChangeBatch) when calling the ChangeResourceRecordSets operation: [A HostedZone must contain at least one NS record for the zone itself.]

This works fine however on CentOS 7.

Any way to fix this to work with newer Debian? Thanks