-
Notifications
You must be signed in to change notification settings - Fork 825
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 Push: Parameters must have values for environment variables #13467
Comments
The issue seems to have a similar behaviour as #13327. |
Hey @neuquen, tried reproducing the issue with the steps provided, but was not able to reproduce the issue.
Could check the issue linked in the previous comment and let us know the reproduction steps are similar in your environment. |
@ykethan I'll start over and do it again with more detailed steps and then get back to you. |
@neuquen thank you for following up. Adding the |
We were able to replicate the issue again. I'm including more verbose output from the interactive prompts, but it honestly seems to be the same steps as before. This time around I included secrets as well as env variables. One difference is that my colleague and I switched roles. This time I added the new function (Person 1) and he tried to make the update and push (Person 2). PERSON 1
PERSON 2
|
Also, regarding #13327. Unfortunately, I already removed the test function, so I no longer can view If this isn't helpful without also seeing the function parameters file, then I can create a new lambda function again (but not until January).
|
Hey @neuquen, thank you for the information. Does the person 2 pull the application from git repository with the |
@ykethan, yes, we use version control and we include This is what was added from the previous try:
I'm going to try again, but this time I will make sure we share the changes in the |
@neuquen the format does appear to be correct in
|
@ykethan, thanks for all the help. The missing environment variables in But that brings up one last question for me. Why are environment variables generated locally for the person who created/updated the lambda function, but not updated when pulled by someone else? The other values are pulled in ( |
@neuquen Glad to hear you were able to mitigate the issue. To clarify the behavior, Amplify CLI currently does not zip |
|
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
20.1.0
Amplify CLI Version
12.8.2
What operating system are you using?
Mac
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No
Describe the bug
We created a new lambda function on an existing project using the same steps found here.
However, with one difference. When we configured advanced settings we also included environment variables.
The issue is that after the function was created and pushed by another developer on our team, I can pull the new function using
amplify pull
, but when I try to push any other change usingamplify push
, it throws the following error:The developer who originally pushed the function has no issues pulling or pushing. Only I do.
The following issues look very similar to these other threads I've seen, but the main difference I see is that the environment variables are causing the issue.
#9484
#11211 (comment)
Expected behavior
Create new lambda functions with environment variables, pull in those changes, and be able to push additional changes up.
Reproduction steps
Project Identifier
No response
Log output
Additional information
No response
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: