Download the PHP package compwright/aws-env without Composer
On this page you can find all versions of the php package compwright/aws-env. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download compwright/aws-env
More information about compwright/aws-env
Files in compwright/aws-env
Download compwright/aws-env
More information about compwright/aws-env
Files in compwright/aws-env
Vendor compwright
Package aws-env
Short Description Load environment variables securely from AWS SSM
License MIT
Package aws-env
Short Description Load environment variables securely from AWS SSM
License MIT
Please rate this library. Is it a good library?
Informations about the package aws-env
aws-env
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:
- If running on EC2, by assuming an IAM role (recommended)
- By reading the
~/.aws/config
and~/.aws/credentials
files, with the optionalAWS_PROFILE
environment variable - Explicitly with the
AWS_REGION
,AWS_ACCESS_KEY_ID
andAWS_SECRET_ACCESS_KEY
environment variables
Usage
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
All versions of aws-env with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
aws/aws-sdk-php Version ^3.295
composer-runtime-api Version ^2.2
symfony/console Version ^7.0
aws/aws-sdk-php Version ^3.295
composer-runtime-api Version ^2.2
symfony/console Version ^7.0
The package compwright/aws-env contains the following files
Loading the files please wait ....