https://prefect.io logo
Title
p

Patrick Tan

05/31/2022, 3:04 PM
Hi, running this in container (AWS ECS) failed but works running from desktop computer
k

Kevin Kho

05/31/2022, 3:09 PM
You might want to delete the pic since it has your key. Do you have a
config.toml
in the image you used for the container?
p

Patrick Tan

05/31/2022, 3:16 PM
No I don’t
should I copy config.toml to image? Or copy .prefect folder to image
k

Kevin Kho

05/31/2022, 3:48 PM
It seems like you do have and it has an API key but you shouldn’t have it?
There are two API keys going on it seems
p

Patrick Tan

05/31/2022, 3:51 PM
yes there are 2 api keys, is it causing issue?should I be removing 1 of them?
k

Kevin Kho

05/31/2022, 3:52 PM
I think so yep
p

Patrick Tan

05/31/2022, 5:59 PM
Just FYI, the reason for the error message is because api key is set at environment variable PREFECT__CLOUD__API_KEY
k

Kevin Kho

05/31/2022, 6:16 PM
ahhh i see. Thanks for letting me know