Skip to content

Commit

Permalink
Update AWC ECS container id regex
Browse files Browse the repository at this point in the history
We have new evidence that ID part may end in 9 digits not just 10 digits.
  • Loading branch information
Mpdreamz authored Aug 20, 2024
1 parent da47c13 commit 52b1c74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion specs/agents/metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ On Linux, the container ID and some of the Kubernetes metadata can be extracted

- `^[[:xdigit:]]{64}$`
- `^[[:xdigit:]]{8}-[[:xdigit:]]{4}-[[:xdigit:]]{4}-[[:xdigit:]]{4}-[[:xdigit:]]{4,}$`
- `^[[:xdigit:]]{32}-[[:digit:]]{10}$` (AWS ECS/Fargate environments)
- `^[[:xdigit:]]{32}-[[:digit:]]{9,10}$` (AWS ECS/Fargate environments)

If we match, then the basename is assumed to be a container ID.

Expand Down

0 comments on commit 52b1c74

Please sign in to comment.