承接 nandi95/laravel-env-in-aws-ssm 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

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 of production|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 .env file 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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-09-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固