Download the PHP package dcotelo/aws-secret-dbdriver without Composer
On this page you can find all versions of the php package dcotelo/aws-secret-dbdriver. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download dcotelo/aws-secret-dbdriver
More information about dcotelo/aws-secret-dbdriver
Files in dcotelo/aws-secret-dbdriver
Download dcotelo/aws-secret-dbdriver
More information about dcotelo/aws-secret-dbdriver
Files in dcotelo/aws-secret-dbdriver
Vendor dcotelo
Package aws-secret-dbdriver
Short Description Easy db auth from aws secret manager
License MIT
Package aws-secret-dbdriver
Short Description Easy db auth from aws secret manager
License MIT
Please rate this library. Is it a good library?
Informations about the package aws-secret-dbdriver
AWS Secret Manager db driver
Features
- Ready to go database driver for AWS secret manager
Install
Composer install
$ composer require dcotelo/aws-secret-dbdriver
Load secrets in AWS Secret Manager as key/value pairs
Naming convention: <env>/<appname>/<conn_name>
Ex: stage/Blog/mysql
Database configuration
Database configuration config/database.php
.
'connections' => [
'mysql' => [
'driver' => 'secret-db',
],
Minimum secret attributes
Cache configuration
Default configuration keep the credentials in cache for 5 minutes customizable in .env
file.
DB_CACHE_TIME=<minutes>
AWS Credentials
In order to consume saved secrets aws credentials must be configured in .env
Ex:
AWS_ACCESS_KEY_ID=<KEY>
AWS_SECRET_ACCESS_KEY=<SECRET>
AWS_REGION=<REGION>
All versions of aws-secret-dbdriver with dependencies
PHP Build Version
Package Version
Requires
aws/aws-sdk-php Version
^3.128
aws/aws-sdk-php-laravel Version ^3.4
guzzlehttp/guzzle Version ^6.4
aws/aws-sdk-php-laravel Version ^3.4
guzzlehttp/guzzle Version ^6.4
The package dcotelo/aws-secret-dbdriver contains the following files
Loading the files please wait ....