Open josefaidt opened 1 year ago
Following the steps above I am encountering a slightly different message:
2023-07-14T21:51:31.513Z [INFO]: π This environment is missing some function environment variable values.
2023-07-14T21:51:31.514Z [INFO]: Function 126446643a84e is missing values for environment variables: my_var
I'm getting the same error. I'm not sure to understand if you fond a solution here @josefaidt
Any plans to fix in the near future? Previews are unusable for us.
From this linked Issue (comment):
I tried,
Previews->Manage preview settings for main branch->Point all Pull Requests for this branch to an existing environment
and setting it to the environment I want it to be linked to.
Build failed.
I also tried adding the environment variable directly into the Amplify Dashboard Environment Variables, build failed.
Why is this bug currently not being addressed? I would appreciate to grant my non-engineer teammates test abilities to the our application ahead of a production release.
I get the same error following theses steps. Previews are unusable with environment variables associated with functions. Do you have any updates on this @josefaidt ?
HI
Facing the same issue when creating new branches, I found that a quick solution would be to pull the new environment down locally and run the amplify push
command to manually enter the parameter values.
However, in an environment where there are large amounts of parameters, I found that this is not feasible. I then wrote a Amplify pre-push Hook Script to pull the parameters from a know working branch and create the parameters for the new branch on push, I added some logic to first check if the parameters exist and if not create the ones that do not, this allowed me to move past this issue.
Link to my script: https://github.com/grantf28/Amplify-SSM-Parameters-Hooks-Script/blob/main/hooks/pre-push.js
CLI version 12.2.0-rc.a3b139fb36.0
Hello Team, I see that that the issue was fixed linked with PR. I tested this with Amplify CLI Version - 12.2.0-rc.a3b139fb36.0 and observe similar issue
Steps of Reproduction
amplify init -y
amplify add function
(make sure you add environment variables to the function)git checkout -b testbranch
version: 1 backend: phases: build: commands: