mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 14:10:49 -05:00
RunInstances ignored the private address it was given, so every instance got the subnet's next free address. It now reads PrivateIpAddress, NetworkInterface.1.PrivateIpAddress (Terraform), the primary NetworkInterface.1.PrivateIpAddresses entry (AWS CLI) and a launch template's primary interface address. The address is validated (inside the subnet, not reserved, not in use, including by another account's instance, interface or NAT gateway on a shared default VPC network, single instance with its own interface, no instance-level address with network interfaces), leased on the VPC's Docker network, and assigned to the instance and its primary interface. A CloudFormation AWS::EC2::Instance now launches at its declared PrivateIpAddress too. Closes #5830