trying to run an ecs agent, getting ```Authorizati...
# prefect-server
n
trying to run an ecs agent, getting
Copy code
AuthorizationError: No agent API token provided
my task definition has a PREFECT__CLOUD__API_KEY, and its set to a service account api key. any ideas?
k
Hi @Nathan Evans, are you using Server or Cloud?
n
cloud, sorry did i post this in the wrong place?
k
Yes but no worries! Iā€™m just asking because the answer can change depending on that. I think you can do this:
prefect agent ecs start -t <token>
and that should work.
šŸ™Œ 1
n
that seems to work, thank you so much @Kevin Kho
šŸ‘ 1
is there any way to supply it as an environment variable? it'd be nice to hydrate it via aws secret manager
z
This looks like the 0.15.0 error resolved in 0.15.1 https://github.com/PrefectHQ/prefect/pull/4751
upvote 1
n
ah, im using a pretty old version of prefect prefecthq/prefect:0.14.13-python3.8
will update, thanks folks
z
Ah yeah API_KEY isn't supported in 0.14.x, you can use your API key as
PREFECT__CLOUD__AUTH_TOKEN
though and it'll work in 0.14.x