cannot push amplify backend on existing environnement #14080
Labels
pending-response
Issue is pending response from the issue author
pending-triage
Issue is pending triage
platform-push
Issues related to `amplify push`
Before opening, please confirm:
JavaScript Framework
Next.js
Amplify APIs
GraphQL API, REST API
Amplify Version
v6
Amplify Categories
api, auth, storage, function
Backend
Amplify CLI
Environment information
Describe the bug
Hi, i have an amplify project deployed with 2 environments, “production” and “develop”, i modified my project by creating a new local environment “test” i changed some things (graphql model, add a rest api with lambdas, and environment variables for my lambda linked to the rest api)
Everything works, so once I'm done, via the CLI I switch to “develop” and delete my “test” environment. I commit and push to github etc., at build time I get the error that my environment variables are not declared.
I came across this documentation: https://docs.amplify.aws/gen1/nextjs/build-a-backend/functions/environment-variables/
I apply what is requested, amplify push but I get an error that I can't resolve
I'm thinking that the error comes from what I've done, but if I create with the CLI an environment and do amplify push, it works.
Expected behavior
I would like to know how I can debug my errors, and if possible why this only happens with an existing environment?
Reproduction steps
Idk ? thats the problem.
Code Snippet
// Put your code below this line.
Log output
aws-exports.js
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: