Skip to content
Cloudflare Docs

Getting started

Last reviewed: 2 days ago

This guide instructs you through:

  • Creating a private network service

Prerequisites

  1. Sign up for a Cloudflare account.
  2. 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.

1. Create a private network service

Create a private network service:

Terminal window
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.

2. Add the binding to your Wrangler file

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"
}
]
}

Summary

TBD

Next steps

TBD