amplify env remove test, removed all resources of prod branch #12954
Labels
pending-response
Issue is pending response from the issue author
pending-triage
Issue is pending triage
question
General question
Amplify CLI Version
can't remember (cuz I upgraded afterwards), but it wasn't the latest version
Question
I had my main amplify env branch prod, which includes all the resources (dynamo db tables, s3 buckets, cognito, ...)
then I did
amplify env add
another branch called test. I think I added it when I try to doamplify push
on it, it throws exception: 🛑 Template error: instance of Fn::GetAtt references undefined resource authokband411e4d5bwhich made me unable to finish
amplify push
(so I think no resources (dynamo tables, s3 buckets, ...) was generated for test branchso i decided to just remove this branch by
amplify env remove test
, then to my shock, it remove ALL my resources (dynamo db tables, s3 buckets, cognito, ...) in prod branch....maybe it's because the amplify push for test branch was never finish so it didn't link its own resources but instead linked prod's resources??But anyway it resulted in a tragedy that the test branch and all my resources of prod branch was removed. prod branch was left with an empty branch with no resources.
I don't know if I did something wrong that resulted this
The text was updated successfully, but these errors were encountered: