Skip to content
This repository has been archived by the owner on Mar 5, 2023. It is now read-only.

Commit

Permalink
Load environment variable values from SSM at runtime
Browse files Browse the repository at this point in the history
Related PR: brefphp/bref#1376
  • Loading branch information
mnapoli committed Jan 27, 2023
1 parent 80e66dc commit 93a7f18
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

use Bref\FpmRuntime\FpmHandler;
use Bref\Runtime\LambdaRuntime;
use Bref\Secrets\Secrets;

ini_set('display_errors', '1');
error_reporting(E_ALL);
Expand All @@ -21,6 +22,8 @@
/** @noinspection PhpIncludeInspection */
require_once __DIR__ . '/../../../autoload.php';

Secrets::decryptSecretEnvironmentVariables();

$lambdaRuntime = LambdaRuntime::fromEnvironmentVariable('fpm');

$appRoot = getenv('LAMBDA_TASK_ROOT');
Expand Down

0 comments on commit 93a7f18

Please sign in to comment.