Monitoring AWS resources in EDB Postgres AI
Suggest editsOverview
Setting up the EDB Postgres® AI Console to monitor your RDS instances and S3 buckets on AWS involves adding a specific policiy and role in AWS. Once these are configured, you need to enter the role ARN of the newly created role into the Cloud Hosted Databases UI, accessible via the Estate page in the EDB Postgres AI Console.
Using this role ARN and a custom policy, the EDB Postgres AI server will have access to the RDS and S3 information in your AWS account.
After providing the role ARN in the Cloud Hosted Databases UI, you will see the selected AWS resources (RDS instances and/or S3 buckets) in the chosen AWS regions on your Estate page in the Cloud Hosted Databases section.
Setting up monitoring of AWS resources in EDB Postgres AI Estate
Starting the Cloud Hosted Databases UI
Go to EDB Postgres AI Console.
Scroll down to the Cloud Hosted Databases section, select the Manage Access button, and choose your project.
The Cloud Hosted Databases UI shows Step 1 - Create custom policy.
Creating the AWS custom policy
Go to the console of your AWS account with the RDS instances and S3 buckets you want to monitor.
Navigate to IAM, and in the navigation pane on the left side of the AWS console, select Policies.
On the Policies dashboard page, select the Create policy button.
In the Policy editor section, choose the JSON option.
Type or paste the following JSON policy document into the JSON editor:
Select Next, give the policy a name, for example,
edb-postgres-ai-addon-policy
and select Create Policy. This policy allows EDB Postgres AI server to query metadata of your AWS RDS and S3 services.
Creating the AWS role
Next, in the Cloud Hosted Databases UI, select the Next: Create a Role button. The Cloud Hosted Databases UI should now show Step 2 - Create a Role.
Go to the AWS console UI, and in the left-hand navigation pane, choose Roles and then select the Create role button.
Select Custom trust policy role type.
In the Custom trust policy section, paste the trust policy you obtained from Step 2 in the Cloud Hosted Databases UI. It looks similar to this:
Note
The EDB Postgres AI Cloud Hosted Databases UI shows a snippet like the one above but with the
<project-id>
already specified.Select the Next button.
Select the policy you created earlier. In this example, we used
edb-postgres-ai-addon-policy
.Select the Next button.
Give the role a name. Note that you must give the role a name that starts with
biganimal-role
, such asbiganimal-role-beacon
.Select the Create role button.
Entering the role ARN into the EDB Postgres AI UI
Still in the AWS console, select the View role button in the green banner at the top of the Roles dashboard in the AWS console.
Copy the role ARN from the Summary section of the Role page in AWS console and paste it into the form at the bottom of the Cloud Hosted Databases UI labeled Role ARN.
Select the Next: Regions and Services button in the Cloud Hosted Databases UI to move to the next step.
Selecting the scope of regions and services
For Step 3 - Regions and Services, select the regions that you want to monitor and the services you want to monitor in those regions.
Select the Next: Review and submit button.
Review your regions and services selections, then select the Submit button. If you notice a mistake, you can always use the Prev: Regions and Services button and go back a step.
Upon success, you will see a notification at the top of the Estate page saying, "The configuration has been submitted successfully."
Within a moment, you should start to see the Cloud Hosted Databases section of your Estate page populate with the available S3 buckets and RDS instances.
Could this page be better? Report a problem or suggest an addition!