Skip to content
/ provide Public

cli tool that provides environment variables from AWS Parameter Store

License

Notifications You must be signed in to change notification settings

GrioSF/provide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A command-line tool for retrieving variables from AWS Parameter Store, so you may centrally manage and provide environment variables for devops purposes.

Installation

Download the binary for your platform from the release page.

Usage

Given you have setup variables in AWS Parameter Store with the following root path /myapp/staging and you have an executable myexecutable, provide will retrieve your variables and provide them to your executable in a sub-process:

provide --get -a myapp -t staging ./myexecutable

AWS Region Resolution

Region resolution resolves in this order of priority:

  1. Specify a region directly, e.g. --region us-west-1
  2. Use an environment variable, e.g. AWS_REGION=us-west-1
  3. Default region us-west-1

Not supported by the aws sdk:

  • Definition of the region in a profile
  • Definition of the region via the AWS instance metadata service

Setting up an AWS Profile

Modify ~/.aws/credentials

[my-profile]
aws_access_key_id = foo
aws_secret_access_key = bar

Modify ~/.aws/config

[profile my-profile]
cli_follow_urlparam = false
region = us-west-1

About

cli tool that provides environment variables from AWS Parameter Store

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages