nandi95/laravel-env-in-aws-ssm
Composer 安装命令:
composer require nandi95/laravel-env-in-aws-ssm
包简介
Manage your environment variables in AWS' SSM Parameter store
README 文档
README
Manage your environment variables in in AWS' SSM Parameter store
Download or upload your .env files into the free AWS's SSM store. This allows you to store up to 10,000 keys over your aws account in each region. More keys are available subject to your quota.
This provides a good companion to referencing env values in cloudformation, serverless framework or to download within runners in other forms of Continuous Deployment processes.
composer require nandi95/laravel-env-in-aws-ssm
This package provides two commands:
php artisan env:push php artisan env:pull php artisan env:list
Arguments:
-
stage- this is something the equivalent ofproduction|staging|develop|...) which identifies what environment the variables are used in. -
--appName=(optional) - this is the name of the current app (equivalent the APP_NAME in the.envfile normally). If not given, or cannot be found, it will prompt the user for it. -
--secretKey=(optional) - The secret key for the user with the required permissions. If not given, or cannot be found, it will prompt the user for it. -
--accessKey=(optional) - The access key id for the user with the required permissions. If not given, or cannot be found, it will prompt the user for it. -
--region=(optional) - The region the infrastructure resides in. If not given, or cannot be found, it will prompt the user for it. -
--decrypt(optional | Default: false) - Decrypt the values before pulling them.See more details about encrypt in the AWS documentation
All commands will use the env file respective to the stage argument. For example: with stage argument production it will work with the .env.production file. If the file exists when pulling, it will back up the existing file.
Parameter <-> environment variable
Keys are transformed in the following manner:
DB_PASSWORD => {appName}/{stage}/DB_PASSWORD
nandi95/laravel-env-in-aws-ssm 适用场景与选型建议
nandi95/laravel-env-in-aws-ssm 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3.23k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2022 年 09 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 nandi95/laravel-env-in-aws-ssm 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 nandi95/laravel-env-in-aws-ssm 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 3.23k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-09-20