Create a database instance¶
Before getting started, you need to create a NebulaGraph Cloud account, create a database, and then connect to it. This topic covers how to create a database instance.
Prerequisites¶
An AWS account is prepared.
Step 1. Sign up and log in to NebulaGraph Cloud¶
-
Open this URL in your browser.
-
Click Sign Up Now to create a NebulaGraph Cloud account using your email, Github or Google account.
If using your email to sign up, you will receive an email containing a Verify button after registration. Click the button to verify your email address and set your password.
-
Log in to NebulaGraph Cloud using your email and password.
Once logged in, an organization and a project are automatically created for you. As the organization owner, you have full access to all resources in your organization. For more information, see Access control explained.
Step 2. Create a database instance¶
For detailed steps, see Create an instance.
(Optional) Step 3. Connect to your database using SDKs¶
If you want to use SDKs to connect to your database, complete this step to configure network access. Otherwise, skip this step.
-
In NebulaGraph Cloud, switch to the organization and project you want to use, and click the name of the database to view the database details.
-
On the left-side navigation pane, click Network access under Security. NebulaGraph Cloud allows you to access the database through public network or private network. Follow either of the following steps based on your requirements:
-
Access the database through public network:
- On the IP Allow List tab, click the toggle switch to enable accessing the database through public network.
- Click + Add IP Addresses to add custom IP addresses to the allow list.
-
Access the database through private network:
-
Click the Private Endpoint tab.
-
On the Create Private Link Service pane, click Create to enable the private link service.
-
On the Create Private Link Endpoint pane, specify your VPC ID and subnet ID, and run the automatically generated command in your AWS CLI to create the private link endpoint.
-
-
-
On the left-side navigation pane, click Overview under Basic.
-
In the upper-right corner of the Overview page, click Connect.
-
In the Connect to your database dialog, specify the following items and click Confirm:
- Choose a connection type: Select Public (Connect via public network) or Private (Connect via private endpoint).
- Install the client: Select NebulaGraph Java, NebulaGraph Go, or NebulaGraph Python, and click Download installation package for installation.
- Connect: Take note of the Host and Port information. Then click Database Users to obtain the Username and Password. For more information, see Manage database users.
-
Set up the SDKs with the connection information obtained in the previous step. For more information, see SDKs and connectors. (Initial password: Nebula.123)