HomeManaged DatabasesDocument DatabasesHow to
Connect a Database Instance to a Private Network
Jump toUpdate content

How to connect a Document Database Instance to a Private Network

Reviewed on 01 August 2023Published on 01 August 2023

Private Networks allows you to enhance the security of your system’s architecture by isolating it from the Internet.

When using Private Networks, your application connects directly to your Database nodes without going through a Load Balancer.

This improves performance by reducing the latency between your application and your database nodes. It also increases the security of your databases, as Instances in your Private Network can directly communicate with your Database Instance, without passing through the public Internet.

You can create new Database Instances to attach to your Private Network, or attach existing ones.

Security & Identity (IAM):

You may need certain IAM permissions to carry out some actions described on this page. This means:

  • you are the Owner of the Scaleway Organization in which the actions will be carried out, or
  • you are an IAM user of the Organization, with a policy granting you the necessary permission sets
Requirements:

How to attach a Database Instance to a Private Network

  1. Click Document Databases under Managed Databases on the side menu. A list of your Database Instances displays.

  2. Click the database name or «See more Icon» > More info to access the Database Instance information page.

  3. Click the Private Networks tabs. The Private Network configuration displays.

  4. Click + Attach Private Network. The Private Network configuration wizard displays.

    • You can choose whether to:
      • Select and attach an existing Private Network and select the network from the drop-down list.
      • Create and attach a new Private Network and enter the name of the network in the form.
    Important:

    Your private IP addresses are automatically allocated. They are managed via an IP Address Manager (IPAM). You can retrieve them on the Private Network tab of your Database Instance. To allocate IPs manually, you can use the Scaleway API and CLI, or Terraform.

  5. Click Attach Private Network to conclude.

How to detach a Database Instance from a Private Network

  1. Click Document Databases under Managed Databases on the side menu. A list of your Database Instances displays.
  2. Click the database name or «See more Icon» > More info to access the Database Instance information page.
  3. Click the Private Networks tabs. The Private Network configuration displays.
  4. Click «Unlink Icon» next to the static IP that you want to unlink from your Database Instance.
  5. Click Detach resource to remove the Instance from your Private Network.
See Also