Skip to main content

No project description provided

Project description

psenv -- (Parameter Store Environment)

a cli tool for managing environments stored in the AWS parameter store

Getting Started

pip install psenv

or better yet, install as a standalone application using pipx

pipx install psenv --> This is the best option

Create a config file

at the terminal run

psenv init

This will create a directory at ~/.psenv and a config file at ~/.psenv/psenv.yml this file is where you will define your environments.

Example psenv.yml

environments:
  some_meaningful_name:
    path: /the/path/used/in-the/aws/parameter-store
    env: /path/to/local/env/file/.env

You can now run

psenv show

You should see a list of all available environments

Fetch an Environment from the AWS Parameter Store

This command will fetch all the parameters on the path configured in the path section of the psenv.yml file

psenv fetch --env some_meaningful_name

Push and Environement to the AWS Parameter Store

Sometimes you need to set up new environments. This is easy with psenv add an entry in psenv.yml

environments:
  new_env:
    path: /some/parameter-store/path
    env: /path/to/.env

populate the .env file with the secrets and parameters you need for your environment and then run psenv push --env new_env

Credential Injection

Sometimes you might want to copy some environment variables from your current terminal session environment to a .env file. Example when you use temp AWS credentials and need to load them into more than one project / environment. To do this, get your creds however you normally would and then

psenv inject --prefix aws --env some_env

all your aws credentials will be injected to your .env file! Like Magic!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

psenv-0.14.0.tar.gz (7.6 kB view hashes)

Uploaded Source

Built Distribution

psenv-0.14.0-py3-none-any.whl (10.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page