Skip to main content

A simple tool that exports ElasticBeanstalk envrionment variables to a .env file

Project description

ElasticBeanstalk to Env

This tool simply does one thing, connects to an Elastic Beanstalk environment, pulls out any custom envrionment variables that are configured and will display them on stdout, or if given a file for output, will write a file containing the values. This is useful when a project requires a different server not running inside Elastic Beanstalk (one that should not recieve web requests, for example) but still requires the same environment configuration. Trying to keep these envrionments in sync manually does not scale, so this tool can be used as a cronjob to write out a new .env file if the configurations do not match.

Installation

pip install elasticbeanstalk-to-env

Usage

Run the eb-to-env command, the --application and --environment options are required. --output requires a filename in the current working directory, if none is specified, the envrionment variables from EB will be printed to stdout.

eb-to-env --application <appname> --environment <envname> --output .env

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

elasticbeanstalk-to-env-0.2.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file elasticbeanstalk-to-env-0.2.tar.gz.

File metadata

  • Download URL: elasticbeanstalk-to-env-0.2.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

File hashes

Hashes for elasticbeanstalk-to-env-0.2.tar.gz
Algorithm Hash digest
SHA256 1d95bff5facf4f33f7e1b0007bf56eceb66207b6d9fe561a67aa2f40107a9ead
MD5 b7b0efd7e498d30760c210e0d9d56226
BLAKE2b-256 c10ae56c6768ea56d508240a5dd90af12f1655c71bf91f0a6e0cf8e0ead918b4

See more details on using hashes here.

Supported by

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