eonx-com/easy-ssm
Composer 安装命令:
composer require eonx-com/easy-ssm
包简介
CLI tool to interact with AWS ParameterStore in a convenient way
README 文档
README
---eonx_docs--- title: Introduction weight: 0 ---eonx_docs---
CLI tool to interact with AWS ParameterStore in a convenient way
Require package (Composer)
We recommend to use Composer to manage your dependencies. You can require this package as follows:
$ composer require eonx-com/easy-ssm
Commands
- apply: Apply local changes to remote AWS ParameterStore
- diff: Resolve diff between local parameters and AWS ParameterStore
- dump-envs: Dump env vars in a PHP file to improve loading time
- export-envs: Fetch parameters from AWS ParameterStore and output shell syntax to export them as env variables
- init: Initialise local parameters from AWS ParameterStore
- local-apply: Apply changes locally when "*_old" file has been generated
- local-diff: Resolve diff locally when "*_old" file has been generated
Dotenv integration
If working on a PHP project, you can use the Dotenv integration provided by this package to load your AWS ParameterStore parameters as env variables within PHP:
// bootstrap.php require_once __DIR__ . '/vendor/autoload.php'; // Will fetch parameters from AWS ParameterStore and export them as env vars (new \EonX\EasySsm\Dotenv\SsmDotenv())->loadEnv(); // Now your parameters from AWS ParameterStore are available in: $_ENV, $_SERVER and via \getenv()
统计信息
- 总下载量: 21.62k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-04-06