:wave: hi folks…If you are using AWS Step functio...
# ask-metaflow
s
👋 hi folks…If you are using AWS Step functions…are you able to have a parameter be filled in by default from an environment variable? I assume that environment variable will need to be present in the first step of your flow otherwise it won’t be able to find it. Is that correct?
âś… 1
For example…
Copy code
class ExampleFlow(FlowSpec):
    param = Parameter("param", type=str, required=False, default=os.getenv("MY_ENV_VAR"))
f
I'm not sure if that would work since I think the params are added before the execution starts and not managed by anything python. Alternatively I think you can overwrite the value of the param in the start step w some conditional logic in python
this 1
s
Yeah, I saw I could pull them in like this, just not sure what values the
context
has
f
ahh cool - yeah would be helpful if these things were typed but think it's this: https://docs.metaflow.org/api/current