avatarTeri Radichel

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

2383

Abstract

s="hljs-attr">--parameter-overrides</span>
groupnameparam=<span class="hljs-variable">$groupname</span></pre></div><p id="8e7b">You can find this flag in the documentation here:</p><div id="f74f" class="link-block"> <a href="https://docs.aws.amazon.com/cli/latest/reference/cloudformation/create-stack.html"> <div> <div> <h2>create-stack - AWS CLI 1.25.40 Command Reference</h2> <div><h3>Note: You are viewing the documentation for an older major version of the AWS CLI (version 1). AWS CLI version 2, the…</h3></div> <div><p>docs.aws.amazon.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/0*mxrTwsObyLiQYL9m)"></div> </div> </div> </a> </div><p id="adb4">Wait. How come AWS can use underscores in variable names and we can’t?</p><div id="c495" class="link-block"> <a href="https://readmedium.com/an-error-occurred-validationerror-when-calling-the-createchangeset-operation-template-format-f870f8451777"> <div> <div> <h2>An error occurred (ValidationError) when calling the CreateChangeSet operation: Template format…</h2> <div><h3>AWS Naming Conventions…again…CloudFormation</h3></div> <div><p>medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/1*4oxP4LXk8l8c3mpRvO7ejg.png)"></div> </div> </div> </a> </div><div id="cd52" class="link-block"> <a href="https://readmedium.com/an-error-occurred-validationerror-when-calling-the-createchangeset-operation-template-format-25c3d5ab6248"> <div> <div> <h2>An error occurred (ValidationError) when calling the CreateChangeSet operation: Template format…</h2> <div><h3>AWS Naming Conventions — again — CloudFormation</h3></div> <div><p>medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/1*4oxP4LXk8l8c3mpRvO7ejg.png)"></div> </div> </div> </a

Options

    </div><div id="01e4" class="link-block">
      <a href="https://readmedium.com/an-error-occurred-validationerror-when-calling-the-describestacks-operation-1-validation-error-fe4f299f109f">
        <div>
          <div>
            <h2>An error occurred (ValidationError) when calling the DescribeStacks operation: 1 validation error…</h2>
            <div><h3>Error with name of CloudFormation stack</h3></div>
            <div><p>medium.com</p></div>
          </div>
          <div>
            <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/1*4oxP4LXk8l8c3mpRvO7ejg.png)"></div>
          </div>
        </div>
      </a>
    </div><p id="37ae">But I digress.</p><p id="e98c">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="550c"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*4oxP4LXk8l8c3mpRvO7ejg.png"><figcaption></figcaption></figure></article></body>

An error occurred (InsufficientCapabilitiesException) when calling the CreateChangeSet operation: Requires capabilities : [CAPABILITY_NAMED_IAM]

Add a flag to CloudFormation for IAM operations

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

⚙️ 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

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

This error means that a CloudFormation template you’re running has IAM resources in it. AWS lets you know and makes you acknowledge that you know by adding a special flag when you’re running an AWS CLI cloudformation deploy, create, or update command.

In my case this:

aws cloudformation deploy \
  --profile $profile \
  --stack-name $groupname \
  --template-file cfn/group_batch_job_admins.yaml \
  --parameter-overrides \
    groupnameparam=$groupname

Needed to become this:

aws cloudformation deploy \
  --profile $profile \
  --capabilities CAPABILITY_NAMED_IAM \
  --stack-name $groupname \
  --template-file cfn/group_batch_job_admins.yaml \
  --parameter-overrides \
    groupnameparam=$groupname

You can find this flag in the documentation here:

Wait. How come AWS can use underscores in variable names and we can’t?

But I digress.

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
Insufficientcapabilities
Exception
Iam
Recommended from ReadMedium