Resource handler returned message: “Model validation failed (#/AliasName: failed validation constraint for keyword [pattern])”
Another confusing and somewhat non-sensical error message
PSA: If you see plagiarism, report it.
Techspec [dot] Online and Attackfeed [dot] com are copying my posts word for word
I would like them to stop
Please make your error messages easy for people to understand, please. I already spent a decent amount of time on this but now I know what it is.
The answer is buried in this page in such a a way that I missed it he first time:
The AWS::KMS::Alias resource specifies a display name for a KMS key. You can use an alias to identify a KMS key in the…
I skimmed over that first line to the specifications below and was looking for it there. It should be listed next to the pattern, which by the way is also not that helpful. Some people understand regex but not all newbie programmers do. Even though I understand regex it is still overly confusing compared to just explaining what characters are allowed in plain English.
The information is actually on the page, however it’s out of order. The explanation of the regex should go under it, not above it, and make it clear that it is explaining what that pattern for a KMS Key Alias means.
Bottom line, I added the prefix to my CloudFormation template so I can simply pass in the alias.
If you liked this story please clap and follow:
Medium: Teri Radichel or Email List: Teri Radichel
Twitter: @teriradichel or @2ndSightLab
Requests services via LinkedIn: Teri Radichel or IANS Research
© 2nd Sight Lab 2022
Need Cloud Security Training? 2nd Sight Lab Cloud Security Training
Cybersecurity & Cloud Security Resources by Teri Radichel: Cybersecurity and Cloud security classes, articles, white papers, presentations, and podcasts