Hi, How can I pass os environment variables to the...
# ask-metaflow
f
Hi, How can I pass os environment variables to the step functions on trigger ?
1
m
You need to pass them at the create step I think
f
I tried using @environment as well, but its not passed
v
you can pass parameters for trigger and parameters can be defined as environment variables
r
I tried using
Parameter
but that is not compatible with the
resume
command. So I am instead passing the env variables via cli, so I can separate dev vs prod executions. To pass env variables for remote execution I use:
Copy code
python file_name.py --environment=conda --with=card --with=retry --with=batch --with=environment:vars='{"ENV":"prod", "NAMESPACE":"prod"}' step-functions create  --tag prod
@victorious-lawyer-58417 When I tried using Parameters, I could not define them when
step-functions create
How can I create a scheduled flow with specific parameters?