Connection
This section explains how to connect to EPAS(DBaaS) using pgAdmin.
Connection Scenario
The scenario involves connecting to EPAS(DBaaS) through a Bastion host in a VPC environment.
Prerequisites
- VPC created
- Subnet created
- Public IP allocated
- Internet Gateway created and attached
- Security Group configured
- Virtual Server (Bastion host) created
- EPAS(DBaaS) created
Connection Steps
Create VPC
Create a VPC to host the EPAS(DBaaS) and Bastion host.
Create Subnet
Create a subnet within the VPC for the EPAS(DBaaS) and Bastion host.
Allocate Public IP
Allocate a public IP for the Bastion host to allow external access.
Create and Attach Internet Gateway
Create an Internet Gateway and attach it to the VPC to enable internet access.
Configure Security Group
Configure the security group to allow access to the EPAS(DBaaS) from the Bastion host.
Create Virtual Server (Bastion Host)
Create a Virtual Server to serve as the Bastion host.
Connect to EPAS(DBaaS) using pgAdmin
Use pgAdmin to connect to the EPAS(DBaaS) through the Bastion host.
Detailed Connection Steps
1. Create VPC
- Click All Services > Network > VPC menu.
- Click the Create button.
- Enter the VPC name and CIDR block.
- Click the Confirm button.
2. Create Subnet
- Click All Services > Network > Subnet menu.
- Click the Create button.
- Select the VPC created in step 1.
- Enter the subnet name and CIDR block.
- Click the Confirm button.
3. Allocate Public IP
- Click All Services > Network > Public IP menu.
- Click the Allocate button.
- Select the VPC and subnet created in steps 1 and 2.
- Click the Confirm button.
4. Create and Attach Internet Gateway
- Click All Services > Network > Internet Gateway menu.
- Click the Create button.
- Select the VPC created in step 1.
- Click the Confirm button.
5. Configure Security Group
- Click All Services > Network > Security Group menu.
- Click the Create button.
- Enter the security group name and description.
- Add inbound rules to allow access from the Bastion host to the EPAS(DBaaS) port.
- Click the Confirm button.
6. Create Virtual Server (Bastion Host)
- Click All Services > Compute > Virtual Server menu.
- Click the Create button.
- Select the VPC and subnet created in steps 1 and 2.
- Select the public IP allocated in step 3.
- Select the security group configured in step 5.
- Click the Confirm button.
7. Connect to EPAS(DBaaS) using pgAdmin
- Install pgAdmin on your local machine.
- Open pgAdmin and create a new server connection.
- Enter the connection information:
- Host: EPAS(DBaaS) private IP address
- Port: EPAS(DBaaS) port number (default: 5432)
- Database: Database name
- Username: Database username
- Password: Database password
- Click the Connect button to connect to the EPAS(DBaaS).