定制 dcotelo/aws-secret-dbdriver 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dcotelo/aws-secret-dbdriver

Composer 安装命令:

composer require dcotelo/aws-secret-dbdriver

包简介

Easy db auth from aws secret manager

README 文档

README

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 

{
  "database": "blog_database",
  "driver": "mysql",
  "host": "127.0.0.1",
  "password": "*******",
  "port": "3306",
  "username": "mysql_user"
}

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>

统计信息

  • 总下载量: 19
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-12-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固