Connect to AWS

The guide demonstrates how to create an AWS IAM User which will be used by Metis in order to collect metrics from an AWS RDS. These metrics are used by Metis' algorithms to find, understand and fix database performance issues.

1. Set Up IAM Policy

To start, go to Create IAM policy, name the new policy MetisPolicy, select JSON and paste the following policy:
{
"Version": "2012-10-17",
"Statement":
[
{
"Action": [
"cloudwatch:GetMetricStatistics"
],
"Effect": "Allow",
"Resource": "*"
},
{
"Action": [
"rds:DescribeDBParameters"
],
"Effect": "Allow",
"Resource": "arn:aws:rds:*:*:pg:*"
},
{
"Action": [
"rds:DescribeDBClusters"
],
"Effect": "Allow",
"Resource": "arn:aws:rds:*:*:cluster:*"
}
]
}
This policy grants Read Only access to the following resources-
  • RDS metadata.
  • CloudWatch metrics.

2. Create IAM User

  1. 1.
    Create an IAM User, name it Metis, and select Access Key credentials type.
2. Attach MetisPolicy created in the previous step.
3. Clicking 'Next' until you reach the last step and copy the Access Key ID and Secret Access Key.

3. Connect CLI to created AWS User

Open Metis-CLI in REPL Mode, type aws_configure() and enter the Access Key ID, Secret Access Key and Region from the previous step.

4. Test your Connection

Open Metis-CLI and type to test the AWS RDS integration.
aws_rds_get_metrics('rds-name', 'CPUUtilization', 1, 60)

Congratulations!
🎉

Your AWS RDS database is now connected to Metis.