avatarTeri Radichel

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

1382

Abstract

lowercase and change the outputs it gives me this error:</p><blockquote id="4462"><p>oot-orgadmin already exists in stack arn:aws:cloudformation:us-east-2:xxxxxxxxxxx:stack/rootadminrole-iam-user-root-orgadmin/</p></blockquote><figure id="d8d4"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*MG2I_CJ6wt44JUXY4w2Bhg.png"><figcaption></figcaption></figure><p id="5d80">I suppose it’s griping because I changed the logical resource name, but it seems like CloudFormation could figure out it’s the same resource just a different case in the logical name?</p><p id="f8a0">Maybe not but if I change the logical name back to uppercase it works.</p><p id="0280">So instead of a lowercase U in User I have to restore the original logical name:</p><figure id="537b"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*lejVV6_ep3Dd39ZV6mrBeQ.png"><figcaption></figcaption></figure><p id="b3e0">And change my outputs to an uppercase U taht are referencing that logical ID:</p><figure id="908c"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*t5bJqYatck09K47PYM3FVA.png"><figcaption></figcaption></figure><p id="21e0">Follow for updates.</p><p id="4a3a">Teri Radichel | <i>© <a href="https://2ndsightlab.com/?source=post_page---------------------------">2nd Sight Lab</a> 2023</i></p><div id="8b5f"><pre><span class="hljs-section">About Teri Rad

Options

ichel:

⭐️ 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="96b9"><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>

Error related to resource already existing in stack after changing the logical ID of the resource

Says the resource already exists in a stack — and it’s the same stack I’m trying to update

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

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

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

I deployed a user with CloudFormation and wanted to update the stack to match the new output naming convention I wrote about in another post.

When I try to perform the deployment of the template where I updated the resource logical name to lowercase and change the outputs it gives me this error:

oot-orgadmin already exists in stack arn:aws:cloudformation:us-east-2:xxxxxxxxxxx:stack/rootadminrole-iam-user-root-orgadmin/

I suppose it’s griping because I changed the logical resource name, but it seems like CloudFormation could figure out it’s the same resource just a different case in the logical name?

Maybe not but if I change the logical name back to uppercase it works.

So instead of a lowercase U in User I have to restore the original logical name:

And change my outputs to an uppercase U taht are referencing that logical ID:

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
AWS
Cloudformation
Stack
Name
Error Message
Recommended from ReadMedium