An error occurred (ValidationError) when calling the DescribeStacks operation: 1 validation error detected: Value ‘2sl_batch’ at ‘stackName’ failed to satisfy constraint: Member must satisfy regular expression pattern: [a-zA-Z][-a-zA-Z0–9]*|arn:[-a-zA-Z0–9:/._+]*
Error with name of CloudFormation stack
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
⚙️ Check out my series on Automating Cybersecurity Metrics | Code.
🔒 Related Stories: Bugs | AWS Security | Secure Code
💻 Free Content on Jobs in Cybersecurity | ✉️ Sign up for the Email List
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
While trying to run an aws cloudformation deploy command I got this error:
An error occurred (ValidationError) when calling the DescribeStacks operation: 1 validation error detected: Value ‘2sl_batch’ at ‘stackName’ failed to satisfy constraint: Member must satisfy regular expression pattern: [a-zA-Z][-a-zA-Z0–9]*|arn:[-a-zA-Z0–9:/._+]*CloudFormation doesn’t allow the underscore _ character in stack names or names that starts with numbers.
Instead of this:
aws cloudformation --stack-name 2sl_batch ....I could rename my stack name:
aws cloudformation --stack-name batch ....AWS naming conventions across the platform are very inconsistent and that can be annoying. I was creating and AWS group and when I satisfied the requirements for the stack name, the validation for the group name failed. I was able to create a name with upper and lower case letters, no numbers and no special characters for both of those and that worked.
However, when you go to create an S3 bucket you won’t be able to use uppercase and you’ll have to use a dash if you want to delineate different words in the name of your bucket rather than upper and lower case.
Consistency would be appreciated. So would the ability to name things starting with a number for companies like mine whose company names start with a number.
Follow for updates.
Teri Radichel | © 2nd Sight Lab 2022
About Teri Radichel:
~~~~~~~~~~~~~~~~~~~~
⭐️ Author: Cybersecurity Books
⭐️ Presentations: Presentations by Teri Radichel
⭐️ Recognition: SANS Award, AWS Security Hero, IANS Faculty
⭐️ Certifications: SANS ~ GSE 240
⭐️ Education: BA Business, Master of Software Engineering, Master of Infosec
⭐️ Company: Penetration Tests, Assessments, Phone Consulting ~ 2nd Sight LabNeed Help With Cybersecurity, Cloud, or Application Security?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
🔒 Request a penetration test or security assessment
🔒 Schedule a consulting call
🔒 Cybersecurity Speaker for PresentationFollow for more stories like this:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
❤️ Sign Up my Medium Email List
❤️ Twitter: @teriradichel
❤️ LinkedIn: https://www.linkedin.com/in/teriradichel
❤️ Mastodon: @teriradichel@infosec.exchange
❤️ Facebook: 2nd Sight Lab
❤️ YouTube: @2ndsightlab
