Skip to content

Commit edb066b

Browse files
DOC-4600 added steps up to connection
1 parent 828ada1 commit edb066b

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

content/integrate/redis-data-integration/data-pipelines/prepare-dbs/aws-aur-pgsql.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,56 @@ to the value `gvb-aurora-pg` that you added earlier:
102102
The final panel shows the estimated monthly costs for the database. If you are happy
103103
that the configuration is correct, select **Create Database**.
104104

105+
## 5. Install PostgreSQL on Ubuntu 20.04
106+
107+
First, ensure your system is up-to-date by running the following commands:
108+
109+
```bash
110+
sudo apt update
111+
sudo apt upgrade
112+
```
113+
114+
Then, install some packages that will be needed during installation:
115+
116+
```bash
117+
sudo apt install dirmngr ca-certificates software-properties-common apt-transport-https lsb-release curl -y
118+
```
119+
120+
To begin installing PostgreSQL, import the GPG key to verify the installation package:
121+
122+
```bash
123+
curl -fSsL https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor | sudo tee /usr/share/keyrings/postgresql.gpg > /dev/null
124+
```
125+
126+
Then, import the stable version of the PostgreSQL 15 APT repository:
127+
128+
```bash
129+
echo deb [arch=amd64,arm64,ppc64el signed-by=/usr/share/keyrings/postgresql.gpg] http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main | sudo tee /etc/apt/sources.list.d/postgresql.list
130+
```
131+
132+
Finally, update the repository and proceed with the PostgreSQL installation:
133+
134+
```bash
135+
sudo apt update
136+
sudo apt install -y postgresql-client-15 postgresql-15
137+
```
138+
139+
## 6. Get the database endpoint
140+
141+
In the navigation pane of the console, select **Databases** and then
142+
select `gvb-database`, which we have just created. Copy the `writer`
143+
endpoint name (highlighted in the screenshot):
144+
145+
{{<image filename="images/rdi/ingest/prepsrc/aurora-pgsql/GetDBEndpoint.jpg" alt="Get Database endpoint panel" >}}
146+
147+
## 7. Connect to the database
148+
149+
You can now connect to the Aurora PostgreSQL with the PostgreSQL client
150+
(installed in [step 5](#5-install-postgresql-on-ubuntu-2004)) using the
151+
following command. The endpoint name is the one you just copied in
152+
step 6 above.
153+
154+
```bash
155+
psql --host=<copied-endpoint-name> --dbname=postgres --username=postgres
156+
```
157+
56.9 KB
Loading

0 commit comments

Comments
 (0)