avatarTeri Radichel

Summary

The website content describes troubleshooting steps for resolving an "InvalidParametersException" error in AWS, specifically when a CloudFormation stack named [x] already exists.

Abstract

The author encountered an error while attempting to create a new AWS account using a Lambda function, which was traced back to an existing CloudFormation stack named [x]. Despite not finding the stack initially in CloudFormation or Service Catalog, the solution was found by filtering the Provisioned Products view to the Account level, where the problematic stack was located. The author then explains the process of terminating the existing stack to resolve the error, emphasizing the importance of understanding the root cause before proceeding. The article also provides context about AWS Service Catalog's reliance on CloudFormation and AWS Control Tower's use of Service Catalog, acknowledging the potential for confusion. Additionally, the author offers resources for further learning on CloudFormation and cybersecurity, invites readers to follow for updates, and provides information about their expertise and services offered through 2nd Sight Lab.

Opinions

  • The author expresses that AWS users might find the error message confusing due to the interconnectedness of AWS services like CloudFormation, Service Catalog, and Control Tower.
  • There is an implication that AWS's error messages could be more intuitive, as the error required significant investigation beyond the initial message.
  • The author suggests a hands-on approach to problem-solving, encouraging readers to explore and click through AWS console features to troubleshoot issues.
  • By sharing personal experiences and insights, the author conveys a commitment to educating others in the field of cybersecurity and cloud services.
  • The author's inclusion of related stories and free content indicates a belief in the value of community knowledge sharing and continuous learning.

A stack named [x] already exists

An error occurred: (InvalidParametersException) when calling the ProvisionProduct operation

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

⚙️ 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 create a new AWS account using a Lambda function which I’ve been writing about in a series of blog posts I hit this error:

“errorMessage”: “An error occurred (InvalidParametersException) when calling the ProvisionProduct operation: A stack named keys already exists.”,
 “errorType”: “InvalidParametersException”

If you’ve used AWS for any length of time you think, oh that must be CloudFormation. Also, I know that under the hood Service Catalog is using Cloud Formation and Control Tower uses Service Catalog. Confused yet? Yeah, I feel your pain.

After digging around in CloudFormation for a while I couldn’t find the stack:

I went to Service Catalog and couldn’t find it there either clicking around on lots of things. Finally, I noticed this filter at the top of Provisioned Products:

Click on User and change to Account, scroll down.

There I could find the “stack” which has an error. I’d need to delete this in order to try the command again. Of course you’ll want to figure out what caused the error and fix that first.

Click the radio button next to the account you wish to create and choose “Terminate.”

Type “terminate” and click “Terminate provisioned product.”

Related story if you’re learning CloudFormation:

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