A step-by-step guide to moving Render private services to AWS: how internal hostnames map to ECS Service Connect or an internal load balancer, what to do with background workers, and a TypeScript version where internal calls are typed function calls.

A Render private service is a web service without a public URL, reachable by your other services over a private network at an address like billing-2j3e:10000. Teams use them for internal APIs, search engines, queue consumers with an HTTP port and anything else only their own code should call.
AWS can do the same thing, and the work is mostly naming and networking: private subnets, security groups and a way for one service to find another. This guide maps each Render concept to ECS, then shows the same internal call declared in code.
The Render behavior is from its private services and private network docs, checked on November 23, 2026. The AWS options are described in the ECS Service Connect guide, which gives services short names that do not depend on VPC DNS configuration.
Open each service in the Render dashboard and write down its Service Address, its port, the services that call it and what the callers send, since the address appears in other services as an environment variable such as BILLING_URL. Separate the services that must receive requests from those that only send them, because Render background workers and cron jobs have no internal address and can only make outbound calls. The second group does not need any networking on AWS, and the first group is where the design decisions are.
Service Connect is the closest match, since it gives each ECS service a short name like billing in a namespace and routes calls through a proxy in each task, with retries and metrics included. An internal Application Load Balancer fits better when one service has many callers outside ECS, or when you want path-based routing, and plain Cloud Map DNS fits when you want no proxy at all. Whichever you pick, put the services in private subnets, and allow inbound traffic to each service's security group only from the callers' security groups.
Render's internal addresses map directly to environment variables, so the cutover can be as small as changing BILLING_URL from the Render address to the Service Connect name, as long as the port matches.
Encore brings infrastructure from code, and a private service becomes an endpoint with expose: false in the service that owns it. Per the AWS infrastructure docs, each Encore service runs in the compute subnets, which accept traffic only from the load balancer, and the platform sets up the networking between the pieces. Encore provisions an IAM role for the service, scoped to the resources it uses.

Run in your terminal to get started locally.
A billing service that was a Render private service, and an orders service that called it through BILLING_URL:
// billing/billing.ts
import { api, APIError } from "encore.dev/api";
interface QuoteRequest {
customerId: string;
items: { sku: string; quantity: number; unitCents: number }[];
}
interface Quote {
totalCents: number;
taxCents: number;
}
// expose: false keeps this off the public API, the job a Render private service did.
export const quote = api(
{ expose: false, method: "POST", path: "/billing/quote" },
async (req: QuoteRequest): Promise<Quote> => {
if (req.items.length === 0) throw APIError.invalidArgument("no items");
const subtotal = req.items.reduce((sum, i) => sum + i.quantity * i.unitCents, 0);
const taxCents = Math.round(subtotal * 0.2);
return { totalCents: subtotal + taxCents, taxCents };
},
);
// orders/orders.ts
import { api } from "encore.dev/api";
import { billing } from "~encore/clients";
interface CheckoutRequest {
customerId: string;
items: { sku: string; quantity: number; unitCents: number }[];
}
export const checkout = api(
{ expose: true, method: "POST", path: "/orders/checkout" },
async (req: CheckoutRequest): Promise<{ totalCents: number }> => {
// A typed call to the internal endpoint, replacing fetch(`${BILLING_URL}/quote`).
const q = await billing.quote({ customerId: req.customerId, items: req.items });
return { totalCents: q.totalCents };
},
);
There is no BILLING_URL, no port and no security group rule to maintain, since the call goes through ~encore/clients, as described in the API calls docs, and a request from outside the app to /billing/quote is rejected. Changing the shape of Quote breaks the build of orders until the caller is updated, where a Render internal call would fail at runtime. Locally, encore run starts both services together, so the call can be tested without a private network.
To deploy, connect your AWS account as described in Connect your cloud account and push with git push encore. For background workers, the closest match is a Pub/Sub subscription, which receives messages without needing an address at all.
A coding agent adding a new internal service writes the endpoint and the call in the same change and runs both locally, with no service names, ports or security groups to edit by hand.
Best fit: Backends moving several Render services into their own AWS account that want internal calls between them to stay private and typed.
Move the services that nobody calls first, then work inward, and keep each Render private service running until its last caller has switched. Compare error rates in both places for a day before deleting anything, since an internal address that is hard-coded in a forgotten cron job is the usual surprise.
An ECS service in private subnets with no public load balancer, reached by other services through ECS Service Connect, AWS Cloud Map DNS or an internal Application Load Balancer. Each option gives the service a stable name inside the VPC in place of Render's internal hostname.
Render gives each web and private service a unique hostname on a private network shared by services in the same region and workspace, for example elasticsearch-2j3e:9200. On AWS you create that naming yourself, with Service Connect short names or Cloud Map DNS records.
No. Render background workers and cron jobs can send requests on the private network but have no internal address, so they cannot receive any. A service that needs to receive requests has to be a private service, which must bind to a port.
With Encore you mark an endpoint with expose set to false, and only other services in the app can call it, as a typed function call from ~encore/clients. The deploy puts services in private subnets behind a load balancer, so no hostnames or ports are configured by hand.
Deploy to your cloud on AWS and Google Cloud
without managing infrastructure
Encore lets developers and agents define application infrastructure directly in code, then automatically provisions it from local development to production in your AWS or GCP account.