compwright/aws-env 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

compwright/aws-env

最新稳定版本:v3.0.0

Composer 安装命令:

composer require compwright/aws-env

包简介

Load environment variables securely from AWS SSM

README 文档

README

Command-line script to obtain service configuration environment and secrets securely from AWS SSM.

Configuration

Configuration can be provided via command line options or environment variables:

Option Env. Variable Description
-p, --path AWS_ENV_PATH Path of secrets to load from SSM
-f, --format AWS_ENV_FORMAT Output format, one of dotenv, env, or export

This script can find AWS credentials in the usual ways, including:

  1. If running on EC2, by assuming an IAM role (recommended)
  2. By reading the ~/.aws/config and ~/.aws/credentials files, with the optional AWS_PROFILE environment variable
  3. Explicitly with the AWS_REGION, AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables

Usage

Usage: aws-env [options] Options: -p, --path=PATH Parameter key path [default: "/"] -f, --format=FORMAT Output format: dotenv, env, export [default: "env"] -h, --help Display help for the given command. When no command is given display help for the bin/aws-env command -q, --quiet Do not output any message -V, --version Display this application version --ansi|--no-ansi Force (or disable --no-ansi) ANSI output -n, --no-interaction Do not ask any interactive question -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug 

For example, to start a shell with a new environment consisting only of the items pulled from AWS SSM + $PATH:

env -i -S"$(bin/aws-env -p /my_app/development) PATH=$PATH" && /bin/bash 

License

MIT License

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固