"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
demandé il y a un an312 vues
1 réponse
0
Réponse acceptée

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
répondu il y a un an
  • 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.

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions