Robin Norgren
08/16/2021, 4:54 PMRobin Norgren
08/16/2021, 4:55 PMprefect.utilities.exceptions.AuthorizationError: No agent API token provided.
This is suprising me as I have set service API key in the task definition (with the actual key):
"environment":
{
"name": "PREFECT__CLOUD__API_KEY",
"value": "<your-key>"
},
As a work around I tried providing the key as an argument to the container cmd:
"command": ["prefect", "agent", "ecs", "start", "--key", "<your-key>"]
But I am running into
Usage: prefect agent ecs start [OPTIONS]
Try 'prefect agent ecs start -h' for help.
Error: no such option: --key
Kevin Kho
Marvin
08/16/2021, 4:57 PMKevin Kho
Robin Norgren
08/16/2021, 5:04 PM