Hako::EnvProviders::Parameterstore
Provide variables from AWS Parameter Store to hako
Installation
Add this line to your application's Gemfile:
gem 'hako-parameterstore'
And then execute:
$ bundle
Or install it yourself as:
$ gem install hako-parameterstore
Usage
- Put encrypted value using AWS ParameterStore
$ aws ssm put-parameter --name encrypted.some_password --value veryverysecret --type SecureString
$ aws ssm get-parameter --name encrypted.some_password --with-decryption
veryverysecret
- Setting hako and run it
env:
$providers:
- type: parameterstore
SOME_PASSWORD: ‘#{encrypted.some_password}'
- A value is set for the ECS environment variable
Environment Variables
Key Value
SOME_PASSWORD veryverysecret