You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.
graphcool deploy does not seem to update environment variables correctly. Does not matter if they are defined just as strings or as ${env:NAME} in graphcool.yml.
Run the query without a parameter and you should see "Hello Alice".
Update NAME in the graphcool.yml file to another string. Re-deploy. The CLI found a diff an deploys.
When running the query, "Alice" is still the name, it has not changed.
Try changing the string again. A bit unclear what's happening here. I was able to deploy once more, but then process.env.NAME seems to be undefined and the query returns "Hello World". I was not able to deploy again after that, even though I'm changing the environment variable no diff is detected.
What is the expected behavior?
graphcool deploy should detect changes in functions.hello.handler.code.environment and update them in the environment.
CLI version
graphcool/0.7.0-beta.12 (darwin-x64) node-v8.5.0
The text was updated successfully, but these errors were encountered:
I think I'm still getting this error on graphcool/0.10.1 (darwin-x64) node-v8.6.0 and I can't seem to update my AWS credentials which is kind of critical.
I had difficulty with AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY. As a work around I changed the environmental variables to AWS_ACCESS_KEY_ID_X and AWS_SECRET_ACCESS_KEY_X.
As functions are deployed to AWS Lambda, there are certain environment variables that are 'protected', as AWS Lambda writes them. AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY are two examples.
What is the current behavior?
graphcool deploy
does not seem to update environment variables correctly. Does not matter if they are defined just as strings or as${env:NAME}
ingraphcool.yml
.How to reproduce:
Clone this Graphcool example and deploy it according to instructions:
https://github.com/graphcool/graphcool/tree/master/examples/env-variables-in-functions
Run the query without a parameter and you should see "Hello Alice".
Update
NAME
in thegraphcool.yml
file to another string. Re-deploy. The CLI found a diff an deploys.When running the query, "Alice" is still the name, it has not changed.
Try changing the string again. A bit unclear what's happening here. I was able to deploy once more, but then
process.env.NAME
seems to be undefined and the query returns "Hello World". I was not able to deploy again after that, even though I'm changing the environment variable no diff is detected.What is the expected behavior?
graphcool deploy
should detect changes infunctions.hello.handler.code.environment
and update them in the environment.CLI version
graphcool/0.7.0-beta.12 (darwin-x64) node-v8.5.0
The text was updated successfully, but these errors were encountered: