avatarTeri Radichel

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

1468

Abstract

(in theory because AWS CloudShell seems to be mangling my code — I’m only using it on a temporary basis) and I’m getting this error:</p><blockquote id="7618"><p>Properties validation failed for resource OrgAccount with message: #/ParentIds/0: failed validation constraint for keyword [pattern]</p></blockquote><p id="d18d">So I check the parent ID and it is fine. I check the script and the template and I can’t see the problem initially.</p><p id="97aa">What is odd is that I had this script working before. Hmm. Did I not check in the code?</p><p id="448b">At any rate I scrutinize the property and see that I have an If statement. Once again, my ! is missing at the start of a condition.</p><p id="806a">As mentioned in the last post, it seems like CloudFormation could figure out this is an IF statement and give an error message indicating that an IF construct is not properly formed.</p><p id="54a7">Perhaps it could say “Did you mean !If?”</p><p id="a5b9">This error message relates to any myriad of problems you may have formulating the property value. It is not specific to If conditions. So if you see this error, scrutinize the value you are assigning to the property for any syntax errors. This is just one possible problem.</p><p id="6e9a">At least it tells you which property value is the problem!</p><p id="5572">Follow for updates.</p><p id="4a3a">Teri Radichel | <i>© <a href="https://2ndsightlab.com/?source=post_page---------------------------">2nd S

Options

ight Lab</a> 2023</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="5a42"><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="550c"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*4oxP4LXk8l8c3mpRvO7ejg.png"><figcaption></figcaption></figure></article></body>

Properties validation failed for resource OrgAccount with message: #/ParentIds/0: failed validation constraint for keyword [pattern]

Error message for simple Organizations Account template that worked before

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

⚙️ Check out my series on Automating Cybersecurity Metrics | Code.

🔒 Related Stories: Bugs | AWS Security | Secure Code | CloudFormation

💻 Free Content on Jobs in Cybersecurity | ✉️ Sign up for the Email List

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

If you’ve been following along with my latest series you know that I successfully added some new accounts in the past using a particular template and script.

Now I’m running the same code again (in theory because AWS CloudShell seems to be mangling my code — I’m only using it on a temporary basis) and I’m getting this error:

Properties validation failed for resource OrgAccount with message: #/ParentIds/0: failed validation constraint for keyword [pattern]

So I check the parent ID and it is fine. I check the script and the template and I can’t see the problem initially.

What is odd is that I had this script working before. Hmm. Did I not check in the code?

At any rate I scrutinize the property and see that I have an If statement. Once again, my ! is missing at the start of a condition.

As mentioned in the last post, it seems like CloudFormation could figure out this is an IF statement and give an error message indicating that an IF construct is not properly formed.

Perhaps it could say “Did you mean !If?”

This error message relates to any myriad of problems you may have formulating the property value. It is not specific to If conditions. So if you see this error, scrutinize the value you are assigning to the property for any syntax errors. This is just one possible problem.

At least it tells you which property value is the problem!

Follow for updates.

Teri Radichel | © 2nd Sight Lab 2023

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
Error Message
Cloudformation
Property
Value
Conditions
Recommended from ReadMedium