aws-amplify / amplify-hosting

AWS Amplify Hosting provides a Git-based workflow for deploying and hosting fullstack serverless web applications.
https://aws.amazon.com/amplify/hosting/
Apache License 2.0
460 stars 116 forks source link

DynamoDB tables exist even after deleting corresponding amplify application #2066

Open nilyin opened 3 years ago

nilyin commented 3 years ago

Before opening, please confirm:

App Id

arn:aws:amplify:eu-central-1:976089832919:apps/d36yi6n1dbxvrq

Region

eu-central-1

Amplify Console feature

Backend builds

Describe the bug

I have noticed that aws resources are still used even after I deleted my amplify application

The example is DynamoDB's tables.

As you may see on screenshot there are a lot of tables of same name left from previous applications' tests

how to effectively clean the unused resource (not connected to app's arn) of my amplify applications, is there any special command like docker prune?

Expected behavior

all assigned to amplify resources are detected and cleaned after app is deleted. optionally: in case the resource is full of data like S3, the wizard must be provided to make owner decide what to delete.

Reproduction steps

1) create new app 2) create backend data 3) delete the app 4) go to DynamoDB (or other resource service) and check the tables (or s3 buckets)

![Uploading Снимок экрана 2021-07-19 в 23.11.28.png…]()

Build Settings

No response

Additional information

No response

nilyin commented 2 years ago

Hi, any progress on that? How can I clean garbage left in multiple AWS spaces from Amplify trial projects in easy way (not by visiting directly DynamoDB and other services multiple UIs and finding/deleting unused records manually?)