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

cli53 export fails if the hosted zone id length is 10. #279

Closed
BhanuCh opened this issue Oct 13, 2019 · 1 comment
Closed

cli53 export fails if the hosted zone id length is 10. #279

BhanuCh opened this issue Oct 13, 2019 · 1 comment

Comments

@BhanuCh
Copy link

BhanuCh commented Oct 13, 2019

cli53 export failed.

  • Bug report

cli53 version (cli53 --version)

cli53 version 0.8.15

OS / Platform

Mac os

Steps to reproduce

cli53 export fails if the hosted zone id length is 10.

We do have server 100's hosted zones in route53.
When i created a hosted zone couple of days back the hosted zone id length is only 10 where as other are greater than 10.

for this newly created hosted zone, cli53 export is failing.

cli53 export /hostedzone/ZEQ814LA8Y
Error: Zone '/hostedzone/ZEQ814LA8Y' not found

I found the bug, it is in

util.go line 102.
var reZoneId = regexp.MustCompile("^(/hostedzone/)?Z[A-Z0-9]{10,}$")

i think here you should check for length of 9 or more.

@barnybug
Copy link
Owner

Pull Request accepted!

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

No branches or pull requests

2 participants