Skip to content

SonyMusicPublishing/aws-secrets-bundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Secrets Bundle

Easy loading of AWS Secrets Manager Secrets for Symfony

Build Status

Installation

$ composer require incompass/aws-secrets-bundle:"dev-master"

Configuration

aws_secrets:
  aws_region: ~
  aws_version: ~
  aws_key: ~
  aws_secret: ~
  delimiter: ','    # delimiter to separate key from secret name
  ignore: false     # pass through aws (for local dev environments set to true)

Usage

Set an env var to an AWS Secret Manager Secret name like so:

AWS_SECRET=secret_name

If you want to grab a key in a JSON secret, you can seperate the secret name and key:

AWS_SECRET=secret_name,key

Set a parameter to this environment variable with the aws processor:

parameters:
    my_parameter: '%env(aws:AWS_SECRET)%'

Your secret will now be loaded at runtime!

About

Loads ENV vars from AWS Secrets Manager

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published