diff --git a/pkg/version/deployment.go b/pkg/version/deployment.go index 5d212a1a98fd..f1ba092998ce 100644 --- a/pkg/version/deployment.go +++ b/pkg/version/deployment.go @@ -108,6 +108,8 @@ func detectPlatform() string { return "coolify" case os.Getenv("RAILWAY_SERVICE_ID") != "": return "railway" + case os.Getenv("ECS_CONTAINER_METADATA_URI_V4") != "": + return "ecs" } // Try to detect cloud provider through metadata endpoints @@ -165,6 +167,5 @@ func detectPlatform() string { } } - return "unknown" }