-
Notifications
You must be signed in to change notification settings - Fork 74
Xata Agent ‐ AWS integration guide
Tudor Golubenco edited this page Mar 13, 2025
·
6 revisions
This guide walks you through creating an IAM policy and user to be used by the Xata Agent.
- Open the IAM Console, navigate to the Policies page, and click Create policy.
- Switch to the JSON editor and enter the following policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"rds:DescribeDBInstances",
"rds:DescribeDBClusters",
"rds:ListTagsForResource",
"rds:DescribeDBClusterSnapshots",
"rds:DescribeDBInstanceAutomatedBackups",
"rds:DescribeDBSnapshots",
"rds:DescribeDBLogFiles",
"rds:DownloadDBLogFilePortion"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"cloudwatch:GetMetricStatistics",
"cloudwatch:ListMetrics",
"cloudwatch:GetMetricData"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"logs:DescribeLogGroups",
"logs:DescribeLogStreams",
"logs:GetLogEvents",
"logs:FilterLogEvents"
],
"Resource": "*"
}
]
}- Click Next.
- Enter a policy name:
XataAgentRDSPolicy. - Click Create policy.
- Navigate to the Users page and click Create user.
- Enter
xata-agentas the User name.
- Click Next.
- Under Permissions, select Attach policies directly.
- Search for the newly created
XataAgentRDSPolicyand select it.
- Click Next and then Create User.
- Open the xata-agent user settings.
- Go to the Security credentials tab.
- Under Access keys, click Create access key.
- On the next page, select Other.
- Click Next twice to generate the access key.
- Download the CSV file or copy the Access key and Secret access key for use in the Agent configuration.