tigerheck/laravel-aws-secrets-manager

Use AWS Secrets manager to load environment variables for configuration.

v1.0.2 2023-02-07 05:47 UTC

This package is auto-updated.

Last update: 2024-11-07 09:43:51 UTC


README

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