https://pulumi.com logo
Title
f

freezing-flower-57391

04/21/2023, 2:25 PM
Hi, When creating a Grafana Provider is possible to set the API Key using env vars (GRAFANA_AUTH) and the URL in the code (url: "test")?
f

freezing-flower-57391

04/21/2023, 2:45 PM
Thanks for the response. So before I was setting my auth and url via:
export GRAFANA_AUTH=VALUE
export GRAFANA_URL=VALUE
Once I removed the GRAFANA_URL env var from my machine and instead hardcoded into code it no longer worked. const provider = new grafana.Provider("provider" , { url: "test", }); Im trying to accomplish this with the AUTH outside of my code
b

billowy-army-68599

04/21/2023, 2:55 PM
could you open an issue on the above repo?
f

freezing-flower-57391

04/21/2023, 3:21 PM
I wish I could but its a private repo
b

billowy-army-68599

04/21/2023, 3:24 PM
🤔
f

freezing-flower-57391

04/21/2023, 3:27 PM
roger that
b

billowy-army-68599

04/21/2023, 3:28 PM
f

freezing-flower-57391

04/21/2023, 5:21 PM
So I can get it working when putting auth and url in my code. But when I split it (auth is via env var and url is in my code) the issue occurs.
That open issue doesnt happen in my env
b

billowy-army-68599

04/21/2023, 5:30 PM
a new issue would be awesome
f

freezing-flower-57391

04/21/2023, 5:32 PM