Easy implementation of AWS secret manager just to get the key value pair of specific secret id.
You can install the package via composer:
composer require minhajul/aws-secret-manager
You can publish the config file with:
php artisan vendor:publish --tag="aws-secret-manager-config"
This is the contents of the published config file:
return [
'aws_secret_key_id' => env('AWS_ACCESS_KEY_ID'),
'aws_secret_access_key' => env('AWS_SECRET_ACCESS_KEY'),
'aww_default_region' => env('AWS_DEFAULT_REGION')
];
use Minhajul\AwsSecretManager\AwsSecretManager;
$awsSecretManager = new AwsSecretManager();
dd($awsSecretManager->getSecretKey('local_encryption_key'));
composer test
The MIT License (MIT). Please see License File for more information.