Use AWS Secrets manager to load environment variables for configuration.
umn/laravel-aws-secrets-manager is a Laravel package for use aws secrets manager to load environment variables for configuration..
It currently has 1 GitHub stars and 5 downloads on Packagist.
Install it with composer require umn/laravel-aws-secrets-manager.
Discover more Laravel packages by umn
or browse all Laravel packages to compare alternatives.
Last updated
Manage environment secrets using AWS Secrets Manager.
You can install the package via composer:
composer require umn/laravel-aws-secrets-manager
Publish Config:
php artisan vendor:publish --provider="Umn\LaravelAwsSecretsManager\LaravelAwsSecretsManagerServiceProvider"
This package will try and load in secrets from AWS Secrets manager in any environment that is in the enabled-environments config array. It is recommended that caching is enabled to reduce round trips to AWS Secrets Manager.
Available env values:
AWS_DEFAULT_REGION
AWS_SECRETS_TAG_NAME=stage
AWS_SECRETS_TAG_VALUE=production
AWS_SECRETS_TAG_NAME and AWS_SECRETS_TAG_VALUE are used to pull down all the secrets that match the tag key/value.
php artisan config:cache
Since this package utilizes the PHP AWS SDK the following .env values are used or credentials set ~/.aws/credentials.
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/guide_credentials.html
composer test
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.
This package was generated using the Laravel Package Boilerplate.
This package was heavily based off of the GAE package. laravel-GAE-secret-manager.