Replies: 2 comments 4 replies
-
Where is this validation being applied? |
Beta Was this translation helpful? Give feedback.
4 replies
-
That makes sense. Thanks. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I used Soto Route53 yesterday for the first time just to help speed up a dev environment daily setup and teardown. I noticed that certain methods return an ID value but it's not exactly an ID value.
Example
For createHostedZone the response hostedZone.id will look something like "/hostedzone/Z02627942RWLEUJXJILLK". The actual ID is "Z02627942RWLEUJXJILLK". I know this because I cannot take the full path returned and plug it back into other methods that require the zoneID.
Similar for any changes. So the same createHostedZone.changeInfo.id will return something like "/change/C08316092TH67QAEWL9XS". The actual ID is "C08316092TH67QAEWL9XS". And only the actual ID can be used in for example a GetChangeRequest.
And this leads to another issue. In my testing yesterday I (only) once saw an error thrown on the length of the hostedZone.id. It was 33 characters long, one over the expected 32 but this was including the "/hostedzone/" prefix. This makes me wonder if the hostedZone.id length is supposed to include the "/hostedzone/" prefix? I only saw this once in my short testing.
All this to say I found this confusing in the very least. AWS' documentation shows the IDs with the prefix being returned so I that appears to be the expected behaviour. But the 33 character zoneID with prefix surprised me. I googled around and saw the error mentioned once or twice elsewhere which leads me to believe the character limit should be applied to the hostedZone ID without the prefix?
Any thoughts? It's not clear to me from the documentation what the expected behaviour should be. Personally I think the IDs should not be prefixed because we cannot then used them in the other methods that require them. And then there is the validation issue which seems like a bug.
Beta Was this translation helpful? Give feedback.
All reactions