Getting started
Last reviewed: 2 days ago
This guide instructs you through:
- Creating a private network service
- Sign up for a Cloudflare account ↗.
- Install
Node.js↗.
Node.js version manager
Use a Node version manager like Volta ↗ or nvm ↗ to avoid permission issues and change Node.js versions. Wrangler, discussed later in this guide, requires a Node version of 16.17.0 or later.
Create a private network service:
npx wrangler vpc service create --tunnel-id <ENTER TUNNEL ID> --private-link-service-host <ENTER PRIVATE NETWORK SERVICE HOST>- Replace
<ENTER TUNNEL ID>with the ID of the tunnel. - Replace
<ENTER PRIVATE NETWORK SERVICE HOST>with the host of the private network service.
Once you have created the private network service, you can add the binding to your Workers' Wrangler configuration:
{ "name": "WORKER-NAME", "main": "./src/index.js", "services": [ { "binding": "AWS_VPC2_ECS_API", "service_id": "5634563546" } ]}name = "WORKER-NAME"main = "./src/index.js"
[[services]]binding = "AWS_VPC2_ECS_API"service_id = "5634563546"TBD
TBD
Was this helpful?
- Resources
- API
- New to Cloudflare?
- Products
- Sponsorships
- Open Source
- Support
- Help Center
- System Status
- Compliance
- GDPR
- Company
- cloudflare.com
- Our team
- Careers
- © 2025 Cloudflare, Inc.
- Privacy Policy
- Terms of Use
- Report Security Issues
- Trademark