"Undeploy" web application

0

I am new to AWS and I'm "playing" with the AWS Toolkit for Visual Studio. I was pleasantly surprised by how easy it is to deploy a sample web application. However, in doing so, I've created a number of resources and I'd like to avoid unnecessary costs for those resources. What is the cleanest way for me to remove the applications from AWS and clean up the associated resources? I'm not even sure how I would determine which resources were created by "Publish to AWS...", so any help identifying the resources I need to clean up would be helpful also.

The application in question is just a slightly modified version of the HelloBlazor sample project.

sisco
asked a year ago298 views
1 Answer
0
Accepted Answer

When you deploy application using the deploy tool a new CloudFormation template will be created, if you want to delete all of the newly deployed infrastructure all you need to do is to delete that cloud formation. You should be able to go to CloudFormation and find a stack with your project's name, by deleting it you will remove all of the deployed infrastructure including and additional nested stacks created.

profile pictureAWS
answered a year ago
  • Additionally, the AWS Toolkit itself can delete Elastic Beanstalk environments, Lambda functions, and ECS clusters, as well as deleting entire CloudFormation stacks. To do this, find the resource in the AWS Explorer (if that's not visible, use View -> AWS Explorer from main menu), then right-click and choose "Terminate" or "Delete" as appropriate. As Dror said, for anything that was deployed using a CloudFormation stack (like a serverless app that creates Lambda and API Gateway), you should choose the CloudFormation stack and delete that.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions