-
Notifications
You must be signed in to change notification settings - Fork 822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Amplify deleting wrong environment after 'amplify env remove [env-name]' #13534
Comments
Hey @Andrea-Vigano, thank you for reaching out. From the log output provided the create and delete of |
I don't know where to find that information in I was not getting errors while pushing Right now on every command I run on the cli I get this error:
|
It may be useful for you to know that I had created an |
@Andrea-Vigano From the information provided, if you only observe the references to
Could you check the Amplify S3 deployment bucket on the AWS console, the bucket name should be in the format: |
Closing due to inactivity |
|
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
21.2.0
Amplify CLI Version
12.8.2
What operating system are you using?
Mac M1
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No manual changes made
Describe the bug
I created a new environment from the cli with
amplify env add
and after failing to push it to the cloud (it was failing, which makes me think the creation was not successful in the first place) I deleted it withamplify env remove [env name]
.The command deleted the wrong environment in the cloud, while locally I still get it when running
amplify env list
.Trying to push the env back to the cloud fails because the cli cannot find the deployment buckets in S3.
Expected behavior
CLI should correctly manage environments consistently or at least not delete the wrong environment.
Reproduction steps
My environment got deleted so I have not chance to check which features of my project where causing issues while creating new environments
Project Identifier
db716a04fee8b7312e086f021e6d234e
Log output
Additional information
No response
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: