DataBackend has an undocumented dependency on the script binary in util-linux
- Vorherrschende Sprache
- Go
- Sterne
- 1.2k
- Forks
- 357
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
I've configured my execute command logging to cloudwatch only:
```
execute_command_configuration = {
logging = "OVERRIDE"
log_configuration = {
cloud_watch_log_group_name = "/aws/ecs/something"
cloud_watch_encryption_enabled = false
}
}
```
However, when my ubi8 container did not have the script binary installed (in package util-linux), I received this error:
```
2026-01-14 10:51:41 ERROR [ssm-session-worker] [ecs-execute-command-egv8enfq3l9zptzgnrlq6szeji] [DataBackend] [pluginName=InteractiveCommands] unable to generate log data: Failed to generate transcript with the following errors:
exec: "script": executable file not found in $PATH:
```
As a result the ssm agent tried to log to s3 instead in a fallback mechanism, but s3 was not configured.
Certain containers running in ECS it might not install util-linux by default, so maybe this dependency should be documented.
Beitragsleitfaden
Rechercherichtung
Beginne damit, das Verhalten von DataBackend bei der Transkripterstellung und die Dokumentation zur Protokollierung von ECS execute-command zu prüfen. Dokumentiere die Anforderung für das script-Binary aus util-linux und erkläre den S3-Fallback, wenn die CloudWatch-Protokollierung kein Transkript erzeugen kann; abgeschlossen, wenn Container-Nutzer die Abhängigkeit identifizieren und installieren können.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- go, linux
- Bereich
- documentation
- Issue-Typ
- Dokumentation
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 42/100