A command-line tool for retrieving variables from AWS Parameter Store, so you may centrally manage and provide environment variables for devops purposes.
Download the binary for your platform from the release page.
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
Region resolution resolves in this order of priority:
- Specify a region directly, e.g.
--region us-west-1
- Use an environment variable, e.g.
AWS_REGION=us-west-1
- 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
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