While creating the new record with abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijkl
as my subdomain I'm getting the below error.
(InvalidChangeBatch 400: DomainLabelTooLong (Domain label is too long) encountered with 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijkl')
From AWS Documentation i found the below statement.
The total length of a domain name cannot exceed 255 bytes, including the dots.
FYI my root domain length is 20 , 20+ 64 (subdomain) also not exceeds this 255 bytes.
Anyone got the issue?
The problem is not with the total length of your domain name, but the length of your subdomain. From the same documentation page:
Domain names (including the names of domains, hosted zones, and records) consist of a series of labels separated by dots. Each label can be up to 63 bytes long.
In this case, your subdomain name abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijkl
is one such label. It's 64 characters long and therefore exceeds the 63 byte limit.