# AWS

> Using an IAM access key limited to two permissions, Pulse tracks the status and CPU of your EC2 instances, one region at a time.

- Section: Servers and providers
- Availability: From the Free plan. On iPhone, iPad, Mac and Android.
- URL: https://pulse-app.si/en/docs/servers/aws

## Create the access key

1. In the AWS console, open **IAM › Users** and create a dedicated user with no console access. In the app, the **Create Keys on AWS** link goes to this page.
2. Add an inline policy limited to the two actions below.
3. In the user’s security credentials, create an access key (the “Application running outside AWS” use case).
4. Note the access key and the secret key.

**IAM policy**

```json
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": ["ec2:DescribeInstances", "cloudwatch:GetMetricData"],
      "Resource": "*"
    }
  ]
}
```

## Connect it to Pulse

1. Open **Settings › Connected Providers** (on Mac, **Settings › Providers**, then **+**) and choose **AWS**.
2. Choose the **Region**, then paste **Access Key** and **Secret Key**.
3. **Token Expiration Date** reminds you to rotate the key. Enter the planned date, or turn it off.
4. Confirm with **Connect AWS**, select the instances to monitor, then choose **Monitor …**.

> **One Pulse account per region**
>
> A connected account reads a single region. To monitor several, connect one account per region, with the same keys if you like. Replacing the keys keeps the account’s region.

## What Pulse reads

| Permission | Data |
| --- | --- |
| `ec2:DescribeInstances` | Status, type, addresses, zone, operating system and name (the `Name` tag). Terminated instances are left out. |
| `cloudwatch:GetMetricData` | CPU: 5-minute average. |

| EC2 state | In Pulse |
| --- | --- |
| `running` | Up |
| `pending` | Pending |
| `stopping`, `stopped`, `shutting-down` | Down |

## Limits and failures

- Without `cloudwatch:GetMetricData`, instances stay monitored but have no CPU reading. The account isn’t marked as failing.
- If EC2 refuses the request, the account moves to **Token rejected**. Check the policy, then use **Replace Token** if the key changed.
- AWS doesn’t provide memory and disk without its own agent on the instance, and Pulse doesn’t read them. Install [Pulse Agent](https://pulse-app.si/en/docs/servers/agent) to get them.
- Pulse requests no billing permission, so there’s no balance and no renewal date. Your instances appear under **Billed by Usage** in the **By Renewal** sort.

- [Pulse Agent](https://pulse-app.si/en/docs/servers/agent): For memory and disk.
- [Connect a provider](https://pulse-app.si/en/docs/servers/hosts): Account status, replacing a token.
