From 3dec83af5094118a9c4faf9a6cd6409d84f73fd5 Mon Sep 17 00:00:00 2001 From: Clayton Cornell Date: Wed, 15 Jan 2025 15:44:16 -0800 Subject: [PATCH 1/6] Update EC2 topic --- .../components/discovery/discovery.ec2.md | 106 +++++++++--------- 1 file changed, 55 insertions(+), 51 deletions(-) diff --git a/docs/sources/reference/components/discovery/discovery.ec2.md b/docs/sources/reference/components/discovery/discovery.ec2.md index 4fb9f98d01..a569ca8075 100644 --- a/docs/sources/reference/components/discovery/discovery.ec2.md +++ b/docs/sources/reference/components/discovery/discovery.ec2.md @@ -8,14 +8,15 @@ title: discovery.ec2 # discovery.ec2 -`discovery.ec2` lets you retrieve scrape targets from EC2 instances. The private IP address is used by default, but you can change it to the public IP address using relabeling. +`discovery.ec2` lets you retrieve scrape targets from EC2 instances. +The private IP address is used by default, but you can change it to the public IP address using relabeling. The IAM credentials used must have the `ec2:DescribeInstances` permission to discover scrape targets, and may optionally have the `ec2:DescribeAvailabilityZones` permission to make the availability zone ID available as a label. ## Usage ```alloy -discovery.ec2 "LABEL" { +discovery.ec2 "