Vishnu Duggirala
11/17/2022, 4:30 PMAnna Geller
11/17/2022, 7:20 PMVishnu Duggirala
11/18/2022, 5:55 PMbotocore.exceptions.NoRegionError: You must specify a region.
I looked at the documentation, there is no attributes "region".Anna Geller
11/18/2022, 8:54 PMaws_credentials
argument and this is where the region can be definedVishnu Duggirala
11/21/2022, 5:24 PMAnna Geller
11/21/2022, 5:31 PMVishnu Duggirala
11/21/2022, 5:49 PMAnna Geller
11/21/2022, 6:25 PMVishnu Duggirala
11/21/2022, 10:17 PMecs_task_block= ECSTask.load("proto")
ecs_task_block.task_definition_arn= "arn:aws:ecs:us-west-2:XXXXXXXXXXX:task-definition/hello_world"
Deployment.build_from_flow(
flow= workflow,
name= "flowtask-test",
work_queue_name= 'proto',
infra_overrides= {"env":{"WORKING_DAYS":"6"}},
infrastructure= ecs_task_block,
path= "/app",
apply= True
)
This is how I have the code right now but agent fails because it is still trying to retrieve the old task-def in that block which is "prefect_example"Anna Geller
11/28/2022, 7:42 PMecs_task_block= ECSTask.load("proto")
ecs_task_block.task_definition_arn= "arn:aws:ecs:us-west-2:XXXXXXXXXXX:task-definition/hello_world"
ecs_task_block.save("proto")
Vishnu Duggirala
11/28/2022, 7:47 PMAnna Geller
11/28/2022, 7:49 PM