Hi - I am trying to deploy a flow that runs with a...
# prefect-community
i
Hi - I am trying to deploy a flow that runs with a
LocalExcecutor
using a
FargateAgent
. The error I am getting is.
Copy code
Error while deploying flow: InvalidParameterException("An error occurred (InvalidParameterException) when calling the RunTask operation: Network Configuration must be provided when networkMode 'awsvpc' is specified.")
The
FargateAgent
NetworkMode
is configured like this:
Copy code
networkMode={
        "awsvpcConfiguration": {
            "assignPublicIp": "ENABLED",
            "subnets": ["subnet-****"],
            "securityGroups": ["sg-****"]
            }
    },
Any ideas? Thanks.
j
@itay livni Instead of
networkMode
try
networkConfiguration
i
@josh That worked. Thanks. Now it seems to be getting hung up at this stage.
Copy code
[2020-06-15 14:13:53,696] INFO - agent | Adding tags for flow_id and version.
j
🤔 like nothing is happening after that? Also noting that depending on your setup you may not need to enable task revisions
i
Correct. Nothing is happening.
Using Prefect Cloud
j
If you don’t enable task revisions on the agent does it still hang somewhere?
i
Yes. Here.
[2020-06-15 14:34:02,698] INFO - agent | Deploying flow run 8.....
. Does the enviroment for the flow need to be explicitly set? Like this
Copy code
environment=RemoteEnvironment(executor="prefect.engine.executors.LocalExecutor")
j
@itay livni is the state of the flow run stuck in submitted?
Deploying flow run
is the last log before it is shipped off to fargate for execution so I wouldn’t expect any other log after that
i
Ok.. So no issue there. And I see a new fargate task being run. However I don't see that the flow being executed.
Just stuck
j
Jw, are you using server or Cloud?
i
Cloud
j
Thanks. Wondering if it’s some cloud communication configuration issue. Would you mind opening an issue on the repo so we can diagnose there? FWIW I am able to use my fargate agent against cloud right now so it’s most likely configuration related 🙂
i
@josh Yes I will open an issue. And yeah its most definitely on my end.
@josh While writing the issue up I saw that I had
local_image=True
. Changing it to
False
could that be it?
j
Hm not sure since that only deals with local docker images during the build phase. Are you pushing your flow’s Docker storage to a registry that fargate can pull from?
i
Yes ECR
@josh Found it... had `"assignPublicIp": "DISABLED",
Thank you!
j
Awesome! Glad you got it working! 😄