Skip to content

No environmental variables in Lumen, config file not read #18

@eis3nhorn

Description

@eis3nhorn

I got it working in Lumen however the environmental variables from Elastic Beanstalk environment are not passed, I had to change the code for ConfigureLeaderCommand.php to

public function handle()
{

    $client = new Ec2Client([
        'credentials' => [
            'key' => getenv('AWS_ACCESS_KEY_ID'),
            'secret' => getenv('AWS_SECRET_ACCESS_KEY'),
        ],
        'region'  => getenv('AWS_REGION'),
        'version' => 'latest',
    ]);

In order to get it to work, the previous code would always use the defaults in the file which obviously fail. USE_CRON also not being read, and having the elasticbeanstalkcron.php under config seems to have no impact at all, nothing is read from it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions