Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit 243df8f

Browse files
authored
Update AWS EC2 resources detection. (#102)
1 parent 4814870 commit 243df8f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

utils/MonitoredResource.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,13 @@ If the GCP metadata service returns a value for "instance/id" and not GCP_GKE_CO
6363

6464
### AWS_EC2_INSTANCE
6565

66-
If the AWS metadata service returns a value for "instance_id".
66+
If the AWS metadata service returns a valid document for
67+
"instance-identity/document".
6768

6869
| Property Name | Environment Variable | Metadata Request |
6970
|----------------|----------------------|----------------------------|
7071
| aws_account | | instance-identity/document |
71-
| instance_id | | instance_id |
72+
| instance_id | | instance-identity/document |
7273
| region | | instance-identity/document |
7374

7475
The value return by the `instance-identity/document` metadata request is a document described

0 commit comments

Comments
 (0)