https://prefect.io logo
#prefect-community
Title
# prefect-community
a

Andrew P

11/16/2022, 10:07 PM
Hey folks, I'm getting a bunch of
| ERROR | prefect.agent - Failed to create work queue 'default'.
when trying to connect to my Prefect Cloud work queue from ECS. I've verified that the
PREFECT_API_URL
looks right (basically,
"<https://api.prefect.cloud/api/accounts/${prefect_account_id}/workspaces/${prefect_workspace_id}>"
, and the two variables when substituted in the env var are the same as in my prefect cloud UI url). Is there any other failure mode that might result in this? Can I pass a debug flag to see if the failure is eg a 403 vs a lack of dns or something? No google results and the error seems pretty opaque. Starting with the command
["prefect","agent","start","-q","default"]
using the image
prefecthq/prefect:2-python3.10
1
z

Zanie

11/16/2022, 10:09 PM
There’s also a
PREFECT_API_KEY
set, right?
a

Andrew P

11/16/2022, 10:10 PM
yeah, that's injected by secrets manager but I'll verify that it's getting injected correctly
Would it be the same error string under that case too
z

Zanie

11/16/2022, 10:11 PM
The URL looks good to me as well. You could run a
prefect config view --show-secrets
to verify.
gratitude thank you 1
a

Andrew P

11/16/2022, 10:15 PM
ill give that a shot, thanks
(the PREFECT_API_KEY looked correct as well)
I notice my service user wasn't added to the workspace explicitly in the UI; am trying that now to see if it changes things
aaand that seems to have done it
z

Zanie

11/16/2022, 10:58 PM
Wonderful!
2 Views