---
title: Monitor Amazon Web Services (AWS)
description: Use the AWS CloudWatch Monitoring template to monitor data from Amazon Web Services (AWS), Amazon Elastic Compute Cloud (EC2), and Amazon Elastic Load Balancing (ELB) with the AWS CloudWatch Service.
url: https://docs.influxdata.com/influxdb/v2/monitor-alert/templates/infrastructure/aws/
estimated_tokens: 1491
product: InfluxDB OSS v2
version: v2
---

# Monitor Amazon Web Services (AWS)

This page documents an earlier version of InfluxDB OSS. [InfluxDB 3 Core](/influxdb3/core/) is the latest stable version.

#### API token hashing is enabled by default in InfluxDB OSS 2.9.0

Stronger token security: tokens are stored as hashes on disk, so a copy of the database file doesn’t expose usable tokens. Existing tokens are hashed on first startup and the original strings can’t be recovered afterward — **capture any plaintext tokens you still need before you upgrade**.

For more information, see [Token hashing](/influxdb/v2/admin/tokens/#token-hashing).

Use the [AWS CloudWatch Monitoring template](https://github.com/influxdata/community-templates/tree/master/aws_cloudwatch) to monitor data from [Amazon Web Services (AWS)](https://aws.amazon.com/), [Amazon Elastic Compute Cloud (EC2)](https://aws.amazon.com/ec2/), and [Amazon Elastic Load Balancing (ELB)](https://aws.amazon.com/elasticloadbalancing/) with the [AWS CloudWatch Service](https://aws.amazon.com/cloudwatch/).

The AWS CloudWatch Monitoring template includes the following:

-   two [dashboards](/influxdb/v2/reference/glossary/#dashboard):
    -   **AWS CloudWatch NLB (Network Load Balancers) Monitoring**: Displays data from the `cloudwatch_aws_network_elb measurement`
    -   **AWS CloudWatch Instance Monitoring**: Displays data from the `cloudwatch_aws_ec2` measurement
-   two [buckets](/influxdb/v2/reference/glossary/#bucket): `kubernetes` and `cloudwatch`
-   two labels: `inputs.cloudwatch`, `AWS`
-   one variable: `v.bucket`
-   one [Telegraf configuration](/influxdb/v2/tools/telegraf-configs/): [AWS CloudWatch input plugin](/telegraf/v1/plugins//#cloudwatch)

## Apply the template

1. Use the [`influx` CLI](/influxdb/v2/reference/cli/influx/) to run the following command:
    
    ```sh
    influx apply -f https://raw.githubusercontent.com/influxdata/community-templates/master/aws_cloudwatch/aws_cloudwatch.yml
    ```
    
    For more information, see [influx apply](/influxdb/v2/reference/cli/influx/apply/).
    
2. [Install Telegraf](/telegraf/v1/introduction/installation/) on a server with network access to both the CloudWatch API and [InfluxDB v2 API](/influxdb/v2/reference/api/).
    
3. In your Telegraf configuration file (`telegraf.conf`), find the following example `influxdb_v2` output plugins, and then **replace** the `urls` to specify the servers to monitor:
    
    ```sh
     ## k8s
     [[outputs.influxdb_v2]]
      urls = ["http://influxdb.monitoring:8086"]
      organization = "InfluxData"
      bucket = "kubernetes"
      token = "secret-token"
    
     ## cloudv2 sample
     [[outputs.influxdb_v2]]
      urls = ["$INFLUX_HOST"]
      token = "$INFLUX_TOKEN"
      organization = "$INFLUX_ORG"
      bucket = “cloudwatch"
    ```
    
4. [Start Telegraf](/influxdb/v2/write-data/no-code/use-telegraf/auto-config/#start-telegraf).
    

## View the incoming data

1. In the InfluxDB user interface (UI), select **Dashboards** in the left navigation.
    
    Dashboards
    
2. Open your AWS dashboards, and then set the `v.bucket` variable to specify the bucket to query data from (`kubernetes` or `cloudwatch`).
