Download the PHP package keboola/aws-parameter-filler without Composer
On this page you can find all versions of the php package keboola/aws-parameter-filler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download keboola/aws-parameter-filler
More information about keboola/aws-parameter-filler
Files in keboola/aws-parameter-filler
Package aws-parameter-filler
Short Description Fills parameters from AWS SSM into an .env file
License MIT
Informations about the package aws-parameter-filler
AWS Parameters filler
Fetches parameters from AWS SSM from a given parameter namespace (prefix) and region. Stores the parameters as an .env file.
Usage
The executable takes thee parmeters:
- destination file
- parameter namespace (starts and ends with slash)
- AWS region
Example:
AWS credentials with GetParametersByPath
and GetParameter
permissons must be available
in any of the standard ways.
Development
Clone this repository and init the workspace with following command:
Use test-cf-stack.json
to create a testing stack. Create an access key for the generated user. Also manually create SecureString parameter, which cannot be created with cloudformation template:
Set the following environment variables (or use .env.template
):
AWS_ACCESS_KEY_ID
- From the created access key.AWS_SECRET_ACCESS_KEY
- From the created acces key.TEST_NAMESPACE
- The value of theNamespace
stack output.TEST_REGION
- The value of theRegion
stack output.
Run the test suite using this command:
Composer Integration
The utility is usable with composer. Add the library to your project by running:
Then add the following to your composer.json
:
Running composer get-parameters
will then download parameters with the specified namespace and store them
in .env
file of the application root. Environment variables may also be used:
License
MIT licensed, see LICENSE file.
All versions of aws-parameter-filler with dependencies
keboola/php-component Version ^4.1|^5.0|^6.0|^7.0|^8.0
php Version >=7.1
symfony/dotenv Version ^4.1|^5.0