Create an OCI VM
This part explains how to provision a compute instance in OCI using the Redwood UI. It covers selecting the appropriate compartment, network configuration, and SSH key setup to ensure the VM can access your private endpoint.
- Sign in to the OCI Console for your tenancy. Ensure you are in the same region as the RDS deployment.
- Click on the navigation menu in the upper left corner of the OCI Console, then go to Compute → Instances
- Click Create Instance.
-
Name: Enter a name for your compute instance (that is, VM).
-
Create in Compartment: Select your dedicated private endpoint compartment.
-
Placement: Accept the default.
-
Image: Accept the default.
-
- Click the Next button.
- Accept the Security defaults.
- Click the Next button.
-
VNIC Name: Enter a name for your VNIC (that is, VM).
-
Primary network: Pick Select existing virtual cloud network.
-
Virtual cloud network compartment: Select your dedicated private endpoint compartment.
-
Virtual cloud network: Select your dedicated private endpoint vcn.
-
-
Subnet: Pick Select existing subnet.
-
Subnet compartment: Select your dedicated private endpoint compartment.
-
Subnet: Select your public subnet. Although database traffic will flow through the private endpoint, the VM requires a public IP to allow SSH access for verification purposes.
-
-
Private IPv4 addresses: Pick Automatically assign private IPv4 addresses.
-
Automatically assign public IPv4 addresses: Enabled
-
Add SSH keys
-
Pick Generate a key pair for me.
-
Click Download private key.
-
Click Download public key.
-
Retain private and public keys, preferably in ~/.ssh.
-
Set permissions, that is,
chmod 600 ~/.ssh/my_private.key
-
-
Accept the Storage defaults. Click the Next button.
-
Review and click the Create button. Your Instance will take a moment to build.
-
Click the navigation menu in the upper left corner of the OCI Console, then go to Compute → Instances. Note the Public IP address of your newly created VM.
-