Vishnu Duggirala
11/17/2022, 4:30 PMAnna Geller
Vishnu 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
aws_credentials
argument and this is where the region can be definedVishnu Duggirala
11/21/2022, 5:24 PMAnna Geller
Vishnu Duggirala
11/21/2022, 5:49 PMVishnu Duggirala
11/21/2022, 5:51 PMAnna Geller
Vishnu Duggirala
11/21/2022, 10:17 PMVishnu Duggirala
11/28/2022, 6:27 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
ecs_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
Anna Geller