diff --git a/src/Components/ServerlessFramework.php b/src/Components/ServerlessFramework.php index f30f431..f6adbe0 100644 --- a/src/Components/ServerlessFramework.php +++ b/src/Components/ServerlessFramework.php @@ -223,6 +223,9 @@ private function serverlessExec(string $oslsPackage, string $command, string $en 'AWS_ACCESS_KEY_ID' => $awsCredentials['accessKeyId'], 'AWS_SECRET_ACCESS_KEY' => $awsCredentials['secretAccessKey'], 'AWS_SESSION_TOKEN' => $awsCredentials['sessionToken'], + // The output is parsed (`serverless info`) and pushed as the deployment logs: no colors, even when + // `FORCE_COLOR` is set, e.g. by a CI or an agent (`--no-color` doesn't win over `FORCE_COLOR`) + 'FORCE_COLOR' => '0', ]; // Merge the current environment with the AWS credentials $env = array_merge(getenv(), $env);