Looking to hire Laravel developers? Try LaraJobs

laravel-aws-secrets-manager maintained by tigerheck

Description
Use AWS Secrets manager to load environment variables for configuration.
Author
Last update
2023/02/07 06:47 (dev-master)
License
Links
Downloads
299

Comments
comments powered by Disqus

Laravel Aws Secrets Manager

Latest Version on Packagist Total Downloads

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