> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/a/aws-route53.md).

# AWS Route53

Amazon Route 53 is the AWS DNS service. OctoXLabs reads the record sets of every hosted zone and adds them as domain assets.

## Use cases

* List every domains asset that AWS Route53 contributes to the inventory.

```
Adapters = aws-route53
```

* Check what one AWS Route53 connection collected.

```
Connections = YOUR_CONNECTION_NAME
```

## Before you begin

### Network

| Source              | Destination                             | Port | Protocol |
| ------------------- | --------------------------------------- | ---- | -------- |
| OctoXLabs connector | route53.amazonaws.com (global endpoint) | 443  | HTTPS    |

### Required permissions

| Scope or role                  | Permission | Needed for                           |
| ------------------------------ | ---------- | ------------------------------------ |
| route53:ListHostedZones        | Read       | Hosted zones and the connection test |
| route53:ListResourceRecordSets | Read       | Record sets                          |

You can attach the **AmazonRoute53ReadOnlyAccess** managed policy or a custom policy with the two permissions.

## Create credentials in AWS Route53

{% stepper %}
{% step %}

### Open IAM

Sign in to the AWS Management Console and open the **IAM** console.
{% endstep %}

{% step %}

### Attach the policy

Create or select an IAM user and attach **AmazonRoute53ReadOnlyAccess** (or a custom policy with the permissions above).
{% endstep %}

{% step %}

### Create the key

On the user detail page open **Security credentials** and choose **Create access key**.
{% endstep %}

{% step %}

### Save it

Save the Access Key ID and Secret Access Key. The secret is shown only once.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter             | Required | Type   | Default | Description                                                     |
| --------------------- | -------- | ------ | ------- | --------------------------------------------------------------- |
| AWS Access Key ID     | Yes      | String | None    | Access Key ID of an IAM user or role with Route 53 read access. |
| AWS Secret Access Key | Yes      | String | None    | Secret Access Key of that key.                                  |

## Troubleshooting

| Error message                                                          | Cause                                                                  | Fix                                                                                                                                           |
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| Status Code: `, followed by the URL, the method and the response body` | The API answered with a status other than the one the adapter expects. | Read the code and body. 401 or 403 usually points to wrong credentials or missing permissions. Check the address, port and Is Secure setting. |

## Change history

{% hint style="info" %}
Available starting from version 6.7.2.
{% endhint %}
