hey yall, I'm trying to setup prefect 2. I have a ...
# ask-community
t
hey yall, I'm trying to setup prefect 2. I have a worker in place per the terraform module https://github.com/PrefectHQ/prefect-recipes/tree/main/devops/infrastructure-as-code/aws/tf-prefect2-ecs-worker and an ecs work pool connected to it. I added the subnets for my VPC (about 5) but I'm getting an error when spinning up a flow
Copy code
botocore.errorfactory.InvalidParameterException: An error occurred (InvalidParameterException) when calling the RunTask operation: subnets can have at most 16 items.
I checked the config for my ecs worker service and confirmed it only has 5 subnets not 16. anyone know what else I should look into?
d
Prefect has automatic infrastructure provisioning for push work pools (docs here). Can you give that a try instead?
t
@Dominic Tarro we wanted to avoid giving prefect that much access to aws due to hipaa constraints. I'm going to try and get the non push work pools setup but will keep this in mind in case I can't figure it out