Matt Allen
07/06/2020, 7:19 PMprefect server start
, the one that runs prefect agent docker
, and the one that runs the script that registers the flow, all with no luckChris White
07/06/2020, 7:23 PMEnvVarSecret
will look to the current OS process running your Flow, which in your case will be the docker container. To set an environment variable on your container, you have essentially two options:
- bake the environment variable into the container (using e.g., a Dockerfile); this of course is not very secure and obviates the need for a secret
- use the -e
flag on your agent to inform the agent to pass along certain env vars to the images it submits (e..g, prefect agent start -e ENV_VAR1=$ENV_VAR1
)Matt Allen
07/06/2020, 7:23 PMChris White
07/06/2020, 7:23 PM