minhajul/aws-secret-manager

Laravel implementation of AWS Secret Manager

1.0.0 2023-08-12 16:15 UTC

This package is auto-updated.

Last update: 2025-05-04 08:44:08 UTC


README

Easy implementation of AWS secret manager just to get the key value pair of specific secret id.

Installation

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')
];

Usage

use Minhajul\AwsSecretManager\AwsSecretManager;

$awsSecretManager = new AwsSecretManager();
dd($awsSecretManager->getSecretKey('local_encryption_key'));

Testing

composer test

Credits

License

The MIT License (MIT). Please see License File for more information.