Skip to content

Commit 7c4627e

Browse files
committed
Pass system environment variables to lambda environment
1 parent a762b5f commit 7c4627e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/php/xp/lambda/RunLambda.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function run(): int {
3737
$environment= $_ENV + ['AWS_LAMBDA_FUNCTION_NAME' => $name, 'AWS_REGION' => $region];
3838

3939
try {
40-
$target= $this->impl->newInstance(new Environment(getcwd(), Console::$out, []))->target();
40+
$target= $this->impl->newInstance(new Environment(getcwd(), Console::$out, $environment))->target();
4141
$lambda= $target instanceof Lambda ? [$target, 'process'] : $target;
4242
} catch (Throwable $e) {
4343
Console::$err->writeLine($e);

0 commit comments

Comments
 (0)