How to use Private Networks with your Serverless Functions
Private Networks allow your Serverless Functions to communicate in an isolated and secure network without needing to be connected to the public internet. Each function can be connected to one or several Private Networks, letting you build your own network topologies.
For full information about Scaleway Private Networks and VPC, see our dedicated documentation and best practice guide.
Before you start
To complete the actions presented below, you must have:
- A Scaleway account logged into the console
- Owner status or IAM permissions allowing you to perform actions in the intended Organization
- Created a Private Network
How to create a Private Network
This action must be carried out from the Private Networks section of the console. Follow the procedure detailed in our dedicated Private Networks documentation.
How to attach a Serverless Function to a Private Network
How to detach a function from a Private Network
- Click Functions in the Serverless section of the side menu. The functions page displays.
- Click the relevant functions namespace.
- Click the name of the function you want to manage.
- Open the Settings tab, then scroll to the Advanced options section.
- In the Private Networks tab, click the unlink icon icon next to the Private Network attached to your function.
- Click Save function settings.
Your function is redeployed and is now detached from the Private Network.
How to delete a Private Network
This must be carried out from the Private Networks section of the console. Follow the procedure detailed in our dedicated Private Networks documentation.
Private Networks and functions limitations
For more information on limitations when using Private Networks with Serverless Functions, refer to the dedicated documentation.