Max Lei

08/20/2020, 4:09 AM
When I use
everything works fine, but when I try to use the prefect server, it’s complaining about environmental variables not setup for AWS, such as:
KeyError: 'No access key found. Please set the environment variable AWS_ACCESS_KEY_ID.'
Is this because the runs are being run inside the docker container?


08/20/2020, 4:15 AM
Hi @Max Lei - when flows are submitted for execution by Prefect Server, they're run in whichever environment you've described in your code. So in this case, it looks like your flow is running in an environment where your AWS credentials aren't set. I'd encourage you to take a look at the execution overview in the docs to better understand what's going on here.

Max Lei

08/20/2020, 4:31 AM
@nicholas I don’t have an environment setup, but I import a python file initially that sets up the environment. I think the environment that I set before registering using
os.environ["key"] = "abc"
is not being passed into