Infra Tooling
During deployment, you can choose to enable "tooling" in dev stage. If you choose to deploy it, the following constructs will be created:
- Sagemaker Studio
- PgAdmin
PgAdmin
PgAdmin construct will enable you to browse the RDS cluster with PgAdmin.
How to access
Note: By default, in CDK we do NOT add any public access to PgAdmin. In order to access it from your computer, you need to enable access to it.
Note: All necessary information is recorded in the
Outputs
tab ofDev-Galileo-ToolingNestedStack
stack in theCloudFormation
service page in your AWS Console.
1. Enable access through PgAdmin Security Group
- Copy the
PgAdminSecurityGroup
SecurityGroupId
- Open
Security Groups
in your AWS Console (EC2
service >Security Groups
menu) - Edit the Security Group's
Inbound Rules
:- Click
Edit inbound rules
button - Click
Add rule
button - Fill out
Type=HTTP
,IP=<your IP address/VPN CIDR block>
,Description=Temporary PgAdmin access
- Example:
1.2.3.4/32
- replace with your IP address1.2.3.4/24
- replace with your VPN CIDR block- Click
Save rules
- Click
2. Acquire credentials for PgAdmin
- Email: the Administrator Email you provided during deployment
- Password: a new
Secret
has been created, which you can retrieve- In
Secrets Manager
, openPgAdminPass
secret - Click
Retrieve secret value
button and copy the password
- In
- URL: Open the website from
CloudFormation
'sPgAdminALBDomain
output - Login to PgAdmin with the credentials
3. Access the database
For all credentials needed to open a connection to your vector store, use the Secret called VectorStoreClusterSecret
in your Secrets Manager
AWS Console page.
- Name: e.g.:
MyVectorStore
- Host name/address: secret >
host
- Port: secret >
port
- Username: secret >
username
- Password: secret >
password
- Save the connection and connect.