- Newest
- Most votes
- Most comments
Thank you for bringing this inconsistency to our attention. You're correct that there appears to be a discrepancy in the naming requirements for OpenSearch applications across different AWS interfaces and documentation.
Based on the most current and authoritative information from the Amazon OpenSearch Service API documentation, the correct naming requirements for an OpenSearch application are as follows:
- The name should have a minimum length of 3 characters and a maximum length of 30 characters.
- The name should follow the pattern [a-z][a-z0-9-]+, which means it must start with a lowercase letter and can contain lowercase letters, numbers, and hyphens.
This is consistent with what you've observed in the AWS Console. However, it appears that the CloudFormation documentation and the actual API implementation may not be fully aligned with these requirements.
Regarding your specific concerns:
-
The CloudFormation documentation suggesting a maximum length of 40 characters appears to be incorrect and should be updated to reflect the 30-character limit.
-
The CloudFormation API not allowing hyphens is indeed inconsistent with the official API specifications and the console behavior. This seems to be an implementation issue that should be addressed.
-
The error message you received through the CloudFormation API suggests a more restrictive pattern ([a-z0-9]{3,30}) than what is officially documented, which is another inconsistency that needs to be resolved.
These inconsistencies can certainly cause confusion and difficulties for users trying to create OpenSearch applications. It would be beneficial to have these requirements standardized across all interfaces and documentation.
As an AWS user, you can report this inconsistency to AWS support or through the AWS forums to bring it to the attention of the relevant teams. They should work on aligning the CloudFormation implementation with the official API specifications, updating any incorrect documentation, and ensuring consistency across all interfaces.
In the meantime, for the most reliable results, it's advisable to follow the naming convention of 3-30 characters, starting with a lowercase letter, and using only lowercase letters, numbers, and hyphens, as this seems to be the common denominator that works across different interfaces.
Sources
ApplicationSummary - Amazon OpenSearch Service
CreateApplication - Amazon OpenSearch Service
answered 2 years ago
Relevant content
asked 4 years ago
