-
Notifications
You must be signed in to change notification settings - Fork 820
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
Function parameters.json file being ignored in new deployment. #13655
Comments
Hey @duckbytes 👋 thanks for raising this! While this approach is not officially supported for adding environment variables, you can get away with manually modifying Otherwise you can use |
Thanks @josefaidt . Originally I had not committed team-provider-info.json because the project is open source and it only seemed to contain data about my development environment. I'm also not working in a team. Is using |
Hey @duckbytes it is not an officially-supported method, but likely worked prior to the change of lifting those env-specific parameters to SSM Parameter Store (around CLI v9/v10). Those parameters/env vars are written to Despite the name, |
Hey @josefaidt. How would you recommend I maintain the What this meant is that I could create a new branch from master, push it up and the new deployment would be created for me without any interventions. It sounds like now I will need to generate a new I'm just wondering how much of this I can automate, since it was working so well before. |
@duckbytes if Amplify CLI is unable to find values from |
Thanks @ykethan In the end I've hard coded the values into the lambda function, since they aren't secrets and don't often change between deployments this seemed like the simplest solution. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
How did you install the Amplify CLI?
No response
If applicable, what version of Node.js are you using?
No response
Amplify CLI Version
12.10.1
What operating system are you using?
Linux
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 have several lambda functions with parameters provided in parameters.json. Parameters.json is in the root of the function, e.g.
amplify/backend/function/plateletAddNewTenant/parameters.json
and contains data like:In the past this is how I've provided environment variables to functions. Existing deployments and new deployments have worked with this setup.
Recently I updated my lambda functions to node 18 and also updates the build settings to use the latest image and CLI version:
However I receive this output on the Amplify console.
I'm triggering these builds with pushes to github.
This is my amplify.yml:
I am not committing team-provier-info.json and would rather these values are taken from the parameters.json file if that's possible.
Expected behavior
I would expect building to use the values in parameters.json for functions instead of saying they are missing.
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: