Skip to content

(ecr): make validateRepositoryName errors human readable #26715

@scanlonp

Description

@scanlonp

Describe the feature

The current errors say repository names must match a long regex. Make the errors explain why the name was not valid in an understandable way.

Use Case

Understanding why a repository name is not valid without deciphering regex.

Proposed Solution

Translate the regex into words in the error messages.

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.91.0

Environment details (OS name and version, etc.)

Mac

Metadata

Metadata

Assignees

Labels

@aws-cdk/aws-ecrRelated to Amazon Elastic Container Registryeffort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.p2

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions