Skip to main content

[AWS] How To: Delete any unused CloudFormation Stacks

A
Written by Annie Gregory
Updated over a year ago

Audience: AWS Technical Owner

Background:

If you have deleted any of your AWS Connection Accounts in Thoropass, it is possible you have orphaned CloudFormation Stacks in your AWS accounts. It is best practice to delete unused CloudFormation Stacks from AWS if they are unused.

To see if you have orphaned AWS CloudFormation Stacks, you should check your AWS connections in Thoropass and compare them against your CloudFormation stacks on AWS:

  1. Visit the Thoropass App and check the AWS Connection Status page. From there, click on Reconfigure.
    ​

  2. From the Wizard, click on I Have Created a Stack
    ​

  3. Copy the ARN and put it somewhere temporary such as Notepad. You may close the wizard. You will reference this later. If you have multiple connection accounts, save these as well.


    ​

  4. Head to AWS CloudFormation and ensure you are logged into the correct account that matches the account # in your ARN. (If you had multiple accounts configured in Thoropass you should log into each account to check).

  5. Look through your list of CloudFormation stacks that were ever created for Thoropass (Older CloudFormation stacks may be under the previous name of Thoropass, "Laika." and compare against the RoleARN value. If the RoleARN value does not match the CloudFormation stack related to the account you are logged into from Thoropass you may delete it. Before you delete it though, ensure no other applications outside of Thoropass are using this by checking with your other stakeholders, reviewing other applications or reviewing your internal infrastructure documentation.

Did this answer your question?