Opa eval pass env variables #248
Unanswered
kotyara85
asked this question in
OPA and Rego
Replies: 1 comment
-
Hi @kotyara85 👋 If you want to read environment variables inside of a policy, you can use the $ MY_VAR=foo opa eval -f pretty 'opa.runtime().env.MY_VAR'
"foo" |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
Is there a way to pass env variables require in regos during opa eval run?
I tried to run like this but it did work
Thanks
Beta Was this translation helpful? Give feedback.
All reactions