This documentation covers Convox V2, our ECS-based engine. V2 is fully supported and actively maintained. Looking for the Kubernetes-based V3 engine? See docs.convox.com.
Private
Private subnet placement for the application's tasks that have their own network interface: Services on Fargate or with Isolate, and timers on Fargate. When set to Yes, these tasks run in private subnets with public IP assignment disabled. When set to No, they run in public subnets with public IPs assigned. Services on EC2 without Isolate run on the Rack's instances, which are placed by the Rack's Private parameter.
| Setting | Value |
|---|---|
| Default value | No |
| Allowed values | Yes, No |
Use Cases
- Set to
Yesfor applications that should not have direct internet access and must route through a NAT gateway - Set to
Yesfor backend services or internal APIs that do not need public IP addresses - Keep as
No(default) for applications that need direct public internet connectivity
Additional Information
Each deploy or promote of a Generation 2 App sets this parameter to the Rack's Private value, so a value set with convox apps params set lasts only until the next deploy. To run one App with a different value from the Rack, set it under params: in convox.yml. See Parameters Set From the Rack.
This parameter controls task-level networking (subnet placement and public IP assignment). It does not affect load balancer scheme. To make a Service's load balancer internal, use the
internalattribute inconvox.yml.
When Private=Yes, these tasks are placed in the Rack's private subnets, which route outbound traffic through NAT gateways. A Rack has private subnets only when its Private or PrivateBuild parameter is Yes. Without them, setting Private: "Yes" makes the deploy of an App with Fargate Services or Fargate timers roll back.
The Isolate parameter provides additional network isolation on top of Private mode.
For example, to run a Fargate App on a private Rack in public subnets:
params:
Private: "No"