Describe the bug
amplify env remove does not remove all resources previously created with amplify cli. Resources that are not removed are:
amplify add analytics);In the long term, AWS account gets messy with unused resources and it makes the creation of new environments with the same name to fail.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
AWS Pinpoint as well S3 buckets used to deploy are removed.
Additional context
NA
@rfpedrosa
This is a known behavior.
Most resource names are marked with time stamps to avoid name clashes.
I marked this as a enhancement request.
@UnleashedMind is there a reason that the DeploymentBucket resource defaults to Retain?
Because it might contain useful data for our customers.
@UnleashedMind ah I see. So then why doesn't the API stack default to retain?
Also, I've been manually deleting the DeploymentBuckets because our Amplify environments are version controlled. If an Amplify enviro is version controlled, can the DeploymentBucket be safely deleted without data loss?
Closing this issue the PR has been merged
Most helpful comment
@UnleashedMind ah I see. So then why doesn't the API stack default to retain?
Also, I've been manually deleting the
DeploymentBuckets because our Amplify environments are version controlled. If an Amplify enviro is version controlled, can the DeploymentBucket be safely deleted without data loss?