tigerheck / laravel-aws-secrets-manager
Use AWS Secrets manager to load environment variables for configuration.
v1.0.2
2023-02-07 05:47 UTC
Requires
- php: ^7.1 || ^7.3 || ^7.4 || ^8.0
- aws/aws-sdk-php: ^3.145 || ^3.219
- illuminate/support: ^6.0 || ^7.0 || ^8.0 || ^9.8
Requires (Dev)
- orchestra/testbench: ^3.8 || ^5.0 || ^6.0 || ^7.4
- phpunit/phpunit: ^7.0||^8.4||^9.3.3
This package is auto-updated.
Last update: 2024-11-07 09:43:51 UTC
README
Add enviroments form Aws Secrets Manager to laravel config.
Install
Via Composer
$ composer require tigerheck/laravel-aws-secrets-manager
Configuration
Laravel Aws Secrets Manager requires connection configuration. To get started, you'll need to publish all vendor assets:
$ php artisan vendor:publish --provider="TigerHeck\AwsSecretsManager\AwsSecretsManagerServiceProvider"
Available env values:
ENABLE_SECRETS_MANAGER=true AWS_SECRETS_TAG_NAME=stage AWS_SECRETS_TAG_VALUE=production
AWS Credentials
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