content/shared/influxdb-v2/monitor-alert/templates/infrastructure/aws.md
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.
The AWS CloudWatch Monitoring template includes the following:
cloudwatch_aws_network_elb measurementcloudwatch_aws_ec2 measurementkubernetes and cloudwatchinputs.cloudwatch, AWSv.bucketUse the influx CLI to run the following command:
influx apply -f https://raw.githubusercontent.com/influxdata/community-templates/master/aws_cloudwatch/aws_cloudwatch.yml
For more information, see influx apply.
Install Telegraf on a server with network access to both the CloudWatch API and InfluxDB v2 API.
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:
## 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"
In the InfluxDB user interface (UI), select Dashboards in the left navigation.
{{< nav-icon "dashboards" >}}
Open your AWS dashboards, and then set the v.bucket variable to specify the
bucket to query data from (kubernetes or cloudwatch).