avatarTeri Radichel

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

1675

Abstract

attribute">detected</span>: Value ‘<span class="hljs-number">2s</span>l_batch’ at ‘stackName’ failed to satisfy <span class="hljs-attribute">constraint</span>: Member must satisfy regular expression <span class="hljs-attribute">pattern</span>: [a-zA-Z][-a-zA-Z0–<span class="hljs-number">9</span>]|<span class="hljs-attribute">arn</span>:[-a-zA-Z0–<span class="hljs-number">9</span>:/._+]</pre></div><p id="eb56">CloudFormation doesn’t allow the underscore _ character in stack names or names that starts with numbers.</p><p id="3afe">Instead of this:</p><div id="f5a5"><pre>aws cloudformation <span class="hljs-params">--stack-name</span> 2sl_<span class="hljs-keyword">batch</span> <span class="hljs-string">....</span></pre></div><p id="e38c">I could rename my stack name:</p><div id="6e01"><pre>aws cloudformation <span class="hljs-params">--stack-name</span> <span class="hljs-keyword">batch</span> <span class="hljs-string">....</span></pre></div><p id="3b23">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.</p><p id="0d57">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.</p><p id="f497">Consistency would be appreciated. So would the ability to name things starting with a number for companies li

Options

ke mine whose company names start with a number.</p><p id="fbfb">Follow for updates.</p><p id="4a3a">Teri Radichel | <i>© <a href="https://2ndsightlab.com/?source=post_page---------------------------">2nd Sight Lab</a> 2022</i></p><div id="8b5f"><pre><span class="hljs-section">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 Lab</pre></div><div id="caae"><pre><span class="hljs-section">Need Help With Cybersecurity, Cloud, or Application Security?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span>
🔒 Request a penetration test or security assessment
🔒 Schedule a consulting call
🔒 Cybersecurity Speaker for Presentation</pre></div><div id="46f6"><pre>Follow <span class="hljs-keyword">for</span> more stories like <span class="hljs-keyword">this</span>:

❤️ Sign Up my Medium Email List ❤️ Twitter: <span class="hljs-meta">@teriradichel</span> ❤️ LinkedIn: https:<span class="hljs-comment">//www.linkedin.com/in/teriradichel</span> ❤️ Mastodon: <span class="hljs-meta">@teriradichel</span><span class="hljs-meta">@infosec</span>.exchange ❤️ Facebook: 2nd Sight Lab ❤️ YouTube: @2ndsightlab</pre></div><figure id="7286"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*4oxP4LXk8l8c3mpRvO7ejg.png"><figcaption></figcaption></figure></article></body>

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 Lab
Need Help With Cybersecurity, Cloud, or Application Security?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
🔒 Request a penetration test or security assessment
🔒 Schedule a consulting call
🔒 Cybersecurity Speaker for Presentation
Follow 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
Cloudformation
Error Message
Describestacks
Validationerror
Naming Conventions
Recommended from ReadMedium