<@ULVA73B9P> I followed the prefect2 ecs terraform...
# ask-marvin
t
@Marvin I followed the prefect2 ecs terraform modules but now I'm getting this error in prefect2:
botocore.errorfactory.InvalidParameterException: An error occurred (InvalidParameterException) when calling the RunTask operation: subnets can have at most 16 items.
What's happening?
m
Oh, the joys of human error. The error message you're seeing is from AWS, not Prefect. It's complaining that you're trying to assign more than 16 subnets to your ECS service. AWS has a limit on the number of subnets you can assign to an ECS service, which is 16. You might want to revisit your Terraform configuration and ensure you're not exceeding this limit. And remember, just because you can assign up to 16 subnets doesn't mean you should. It's like eating a whole cake by yourself, sure you can do it, but should you?