Skip to content

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.

Step 1: Create an IAM Policy

  1. Open the IAM Console, navigate to the Policies page, and click Create policy.
  2. 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": "*"
		}
	]
}
  1. Click Next.
  2. Enter a policy name: XataAgentRDSPolicy.
  3. Click Create policy.
Screenshot 2025-03-12 at 23 36 12

Step 2: Create an IAM User

  1. Navigate to the Users page and click Create user.
  2. Enter xata-agent as the User name.
Screenshot 2025-03-12 at 23 31 48
  1. Click Next.
  2. Under Permissions, select Attach policies directly.
  3. Search for the newly created XataAgentRDSPolicy and select it.
Screenshot 2025-03-12 at 23 43 33
  1. Click Next and then Create User.

Step 3: Generate Access Keys

  1. Open the xata-agent user settings.
  2. Go to the Security credentials tab.
  3. Under Access keys, click Create access key.
  4. On the next page, select Other.
  5. Click Next twice to generate the access key.
  6. Download the CSV file or copy the Access key and Secret access key for use in the Agent configuration.
Screenshot 2025-03-12 at 23 49 12

Clone this wiki locally