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
Hi,
I tried your script on Debian buster/bullseye and I am getting the following:
This works fine however on CentOS 7.
Any way to fix this to work with newer Debian? Thanks