From 52b1c745ac6802904f638819f29c7904ad42463d Mon Sep 17 00:00:00 2001 From: Martijn Laarman Date: Tue, 20 Aug 2024 16:50:00 +0200 Subject: [PATCH] Update AWC ECS container id regex We have new evidence that ID part may end in 9 digits not just 10 digits. --- specs/agents/metadata.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/agents/metadata.md b/specs/agents/metadata.md index 0959594e..b22df0d8 100644 --- a/specs/agents/metadata.md +++ b/specs/agents/metadata.md @@ -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.