Dane Gardner
01/13/2021, 4:51 PMStorage
classes seems to only be able to reference a single file, not entire modules/directories. Are there any examples of a somewhat complicated suite of flows with code shared between them?josh
01/13/2021, 5:18 PMDane Gardner
01/13/2021, 5:27 PMDane Gardner
01/13/2021, 5:27 PMDane Gardner
01/13/2021, 7:14 PMAn error occurred (InvalidParameterException) when calling the RunTask operation: Task definition does not support launch_type FARGATE.
Dane Gardner
01/13/2021, 7:31 PMDane Gardner
01/14/2021, 12:09 AMexecutionRoleArn
in the definition if a private ECR repository is used, otherwise it gives a massively cryptic error (above). There does not seem to be a way to specify this manually in the ECSRun configuration or in the ECSAgent.
I'm new to Prefect and ECS, so any direction here would be appreciated.Dane Gardner
01/14/2021, 12:54 AMtask_definition = yaml.safe_load(read_bytes_from_path(DEFAULT_TASK_DEFINITION_PATH))
task_definition.update({
"executionRoleArn": "arn:aws:iam::[...]:role/[...]",
"taskRoleArn": "arn:aws:iam::[...]:role/[...]",
})
RUN_CONFIG = ECSRun(
cpu=256,
memory=512,
task_definition=task_definition,
)
I would have thought the behavior would be the Agent's task definition as the base, and merge in the RunConfig on top of that, not completely ignore the Agent's config... which needs to dynamically specify the Docker image and tagjosh
01/14/2021, 2:41 PMCarter Kwon
01/15/2021, 11:42 PMnetworkMode: awsvpc
cpu: 1024
memory: 2048
containerDefinitions:
- name: flow
taskRoleArn: arn:aws:iam::12345678910:role/prefect-ecs
executionRoleArn: arn:aws:iam::12345678910:role/ecsTaskExecutionRole
and starting the agent with agent ecs start --cluster <cluster-arn> --token <token> --label uat --task-definition <path/to/file.yaml>
and it worked great without having to set anything on the run config of each flow.Sagun Garg
01/21/2021, 7:42 AM--run-task-kwargs
ValueError: Failed to infer default networkConfiguration, please explicitly configure using --run-task-kwargs