Skip to navigationSkip to main contentSkip to footerScaleway DocsSparklesIconAsk our AI
SparklesIconAsk our AI

Managed MongoDB® FAQ

Usage and management

How can I connect to a Database Instance in a Private Network using Public Gateways?

InformationOutlineIcon
Note

Managed MongoDB® is currently not compatible with the Static NAT feature of Scaleway Public Gateways. Instead, you can use Public Gateways' SSH bastion feature and perform port forwarding. Follow the steps below to connect using SSH bastion.

If you want to connect locally to a Database Instance that is not accessible via the public internet, you can use SSH Bastion and connect it to the same Private Network the Database Instance is connected to.

  1. Open an SSH tunnel with port forwarding:

    ssh -L local_port:instance_id.network_id.internal:27017 bastion@gatewayIP -p 61000 -N
  2. Connect using mongosh:

    mongosh --host localhost --port local_port --username "username"

What are the MongoDB free trial conditions?

The MongoDB free trial lasts for 30 days. During the trial period, you can create up to 3 free instances using the PLAY2-NANO node type. These can be standalone instances or 3-node replica sets. If you choose any other node type, standard pricing applies. You can have up to 50GB of storage for free on these instances. Standard pricing applies for additional storage. To be eligible for the free trial, you must not have previously ordered a Managed MongoDB instance. When activating the trial, your first instance must use the PLAY2-NANO node type. You can opt out of the free trial by unchecking the Activate the 30-day free trial option during setup. Note that you will no longer be eligible for the trial approximately 30 minutes after creating your first instance.

InformationOutlineIcon
Note

When you activate the free trial, the console shows 29 days remaining. This is because the countdown begins immediately (technically, 29 days, 23 hours, and 59 minutes remain, but only full days are displayed).

SearchIcon
No Results