mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
An environment's NetworkConfiguration names the subnets Amazon MWAA runs its workers in, but the Airflow container stayed on Floci's own network, so a DAG could not reach an EC2 instance, or anything else in the VPC, at the private address EC2 reports. Before the container starts, it now joins its VPC's Docker network at an address leased from the first subnet, as EC2 instances and VPC-configured Lambda functions do, and keeps the network it was created on, where its metadata database is. The address goes back once the container is removed, on delete or after a failed start. A subnet EC2 does not know, or VPC networks switched off, leaves it as before.