-
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
Error when trying to add a new environment from cli #13198
Comments
Hey @wangdavidhao 👋 thanks for raising this! I was not able to immediately reproduce this using CLI 12.4.0, however I have a few follow-up questions to better understand the context of the issue you are experiencing:
Despite the issue, as a workaround, can you try the following:
|
Hey @wangdavidhao I wanted to follow up here and see if you're still experiencing this? |
closing the issue due to inactivity. please feel free in reaching out to us, we would be happy in diving deeper. |
|
It helps me! |
How did you install the Amplify CLI?
$ npm install -g @aws-amplify/cli
If applicable, what version of Node.js are you using?
20.2.0
Amplify CLI Version
12.2.3
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
Describe the bug
Hello !
I am trying to add a new env called
prod
on my project usingamplify env add
After submitting the name and the authentication method, I got this error:
✖ Initializing your environment: prod
✖ There was an error initializing your environment
🛑 Could not initialize platform for 'prod': Missing required key 'Bucket' in params
But using the command
amplify env list
, the env is created (probably due to a new empty bloc namedprod
insideteam-provider-info.json
) and I am currently using this env:| Environments |
| ------------ |
| staging |
| *prod |
Then, when I try to checkout to my staging env with
amplify env checkout staging
, I got this error:✖ Initializing your environment: staging
✖ There was an error initializing your environment.
🛑 There was an error building the custom resources
No package manager found. Please install npm, yarn, or pnpm to compile overrides for this project.
\Resolution: There may be errors in your custom resource file. If so, fix the errors and try again.\ Learn more at: https://docs.amplify.aws/cli/project/troubleshooting/
But I am indeed inside my
staging
env, as stated when using the commandamplify status
:Current Environment: staging
But now, If I want to push some changes using
amplify push
tostaging
, I get this error:No package manager found. Please install npm, yarn, or pnpm to compile overrides for this project.
Now, I can't create a new environment, and when returning to my previous environment, it also doesn't work anymore.
Is there any possible solution to resolve this ? Thanks !!
Expected behavior
New env is successfully created
Reproduction steps
amplify env add
amplify env checkout newEnv
amplify push
Project Identifier
No response
Log output
Additional information
No response
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: