Chris Drumgoole
02/11/2025, 6:59 AMdefaults: &deploydefaults
description: Prefect 3 deployment
version: 1.0.0
entrypoint: flows/my_flow.py:flow
work_pool:
name: flow_work_pool
work_queue_name: '' # Use `default`
job_variables:
cpu: 512
memory: 1024
cluster: my_cluster
task_role_arn: arn:aws:iam::xxxxxx:role/my_task_role
execution_role_arn: arn:aws:iam::xxxxxx:role/my_task_execution_riole
networkConfiguration:
awsvpcConfiguration:
subnets:
- subnet-abc123
- subnet-def456
- subnet-ghi789
securityGroups:
- sg-987654321
assignPublicIp: ENABLED
image: '{{ my_image.image }}'
schedules: []
tags:
- ""
concurrency_limit:
The 3 subnets are public - i have 3 private subnets too. But, randomly (i guess approximately half of the time?), the container is started in one of the private subnets, and this is a problem since I don't have a NAT Gateway and it will fail.
Any ideas? Thanks!! 🙏Chris Drumgoole
02/12/2025, 3:31 AM