Skip to content

Commit

Permalink
Update AWC ECS container id regex (#886)
Browse files Browse the repository at this point in the history
* Update AWC ECS container id regex

We have new evidence that ID part may end in 9 digits not just 10 digits.

* Update specs/agents/metadata.md
  • Loading branch information
Mpdreamz authored Aug 28, 2024
1 parent da47c13 commit ce6d285
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:]]{1,10}$` (AWS ECS/Fargate environments)

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

Expand Down

0 comments on commit ce6d285

Please sign in to comment.