-
Notifications
You must be signed in to change notification settings - Fork 258
feat(mdb): vpc - MTA-5613 #4434
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
b656e9a
fix(mdb): exemples connection string vpc
ldecarvalho-doc d3f7bf7
feat(mdb): vpc connection
ldecarvalho-doc 9153579
fix(mdb): vpc pt 2
ldecarvalho-doc da71f15
fix(bil): review neda
ldecarvalho-doc c4377c9
fix(mdb): update code samples
ldecarvalho-doc 3ca6987
fix(rdb): review walter 2
ldecarvalho-doc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
pages/managed-mongodb-databases/how-to/connect-database-private-network.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| --- | ||
| meta: | ||
| title: How to connect a Managed MongoDB® Database Instance to a Private Network | ||
| description: Instructions for connecting your MongoDB® Database Instance over a Private Network. | ||
| content: | ||
| h1: How to connect a Managed MongoDB® Database Instance to a Private Network | ||
| paragraph: Instructions for connecting your MongoDB® Database Instance over a Private Network. | ||
| tags: managed-mongodb mongodb private-network database-instance | ||
| dates: | ||
| validation: 2025-02-17 | ||
| posted: 2025-02-17 | ||
| categories: | ||
| - managed-databases | ||
| - mongodb | ||
| --- | ||
|
|
||
| [Private Networks](/vpc/concepts/#private-networks) allows you to enhance the security of your system's architecture by isolating it from the internet. | ||
|
|
||
| Using Private Networks 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. | ||
|
|
||
| <Macro id="requirements" /> | ||
|
|
||
| - A Scaleway account logged into the [console](https://console.scaleway.com) | ||
| - [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization | ||
| - A valid [API key](/iam/how-to/create-api-keys/) | ||
| - A [Managed MongoDB® Database Instance](/managed-mongodb-databases/how-to/create-a-database-instance) | ||
|
|
||
| ## How to attach a Database Instance to a Private Network | ||
|
|
||
| <Message type="note"> | ||
| You can only attach your Database Instance to one Private Network at a time. | ||
| </Message> | ||
|
|
||
| 1. Click **MongoDB®** under **Managed Databases** on the side menu. A list of your Database Instances displays. | ||
| 2. Click the database name or <Icon name="more" /> > **More info** to access the Database Instance information page. | ||
ldecarvalho-doc marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| 3. Scroll to the **Network** section. | ||
| 4. Click **Attach Private Network** next to **Private endpoint**. A pop-up appears. | ||
| 5. Choose whether to: | ||
| - Select and attach an existing Private Network and select the network from the drop-down list. | ||
| <Message type="important"> | ||
| The Database Instance must be attached to a Private Network in the same region. | ||
| </Message> | ||
| - Create and attach a new Private Network and enter the name of the network in the form. | ||
| <Message type="important"> | ||
| If you select this option, a Private Network with default settings will be created in the same region as your Database Instance. Do not use a TLD (e.g. dev, cloud) as a name, to avoid conflicts. | ||
ldecarvalho-doc marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| </Message> | ||
| 6. Click **Attach to Private Network** to conclude. | ||
|
|
||
| <Message type="important"> | ||
| Managed MongoDB® is currently not compatible with the [Static NAT](/public-gateways/concepts/#nat) feature of [Scaleway Public Gateways](/public-gateways/concepts/#public-gateway). You can use Public Gateways in [SSH bastion](/public-gateways/how-to/use-ssh-bastion/) mode and perform port forwarding. | ||
| </Message> | ||
|
|
||
| <Message type="tip"> | ||
| Once you have attached your Database Instance to a Private Network, you can [connect to the Database Instance](/managed-mongodb-databases/how-to/connect-database-instance) using the private endpoint connection string. | ||
| </Message> | ||
|
|
||
| ## How to detach a Database Instance from a Private Network | ||
|
|
||
| 1. Click **MongoDB®** under **Managed Databases** on the side menu. A list of your Database Instances displays. | ||
| 2. Click the database name or <Icon name="more" /> > **More info** to access the Database Instance information page. | ||
ldecarvalho-doc marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| 3. Scroll to the **Network** section. | ||
| 4. Click <Icon name="unlink" /> next to the static IP that you want to unlink from your Database Instance. | ||
| 5. Click **Detach Private Network** to remove the Instance from your Private Network. | ||
|
|
||
| <Message type="note"> | ||
| This action takes a few moments to complete. During this time, your Database Instance: | ||
| - remains available, | ||
| - goes into **Configuring** mode, and | ||
| - network configuration actions become unavailable | ||
| </Message> | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.