Skip to main content

ssmenv2exec

Populate environment variables from AWS Systems Manager Parameter Store parameters before executing a process.

This allows application configuration to be stored in SSM rather than on the EC2 instance or Docker container.

Usage

pip install ssmenv2exec

Now you can use the ssmenv2exec script from the command line to execute your process and have the environment populated from an AWS SSM Parameter store path.

For example, in parameter store you can create parameters using a common path.

/app/myapp/DB_USER
/app/myapp/DB_PASS
/app/myapp/DB_URL
/app/myapp/SECRET_KEY

Then you can use ssmenv2exec to execute your program and the initial environment will contain values for DB_USER, DB_PASS, DB_URL and SECRET_KEY. If any of those already exist as environment variables they will not be overridden.

ssmenv2exec /app/myapp python app.py

ssmenv2exec will grab all parameters from the Parameter Store under the /app/myapp path and pass those as environment variables to the process. An exec call is used so that the process id (pid) remains consistent, which is useful for containerized environments.

Metadata

Release files for ssmenv2exec 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ssmenv2exec 0.0.1
File Size Uploaded Provenance Actions
ssmenv2exec-0.0.1.tar.gz 6.8 kB Without provenance Details for ssmenv2exec-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ssmenv2exec 0.0.1
File Interpreter ABI Platform Actions
ssmenv2exec-0.0.1-py3-none-any.whl Python 3 none any Details for ssmenv2exec-0.0.1-py3-none-any.whl

Total release size: 14.0 kB

Release files / ssmenv2exec-0.0.1.tar.gz

Download URL ssmenv2exec-0.0.1.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
678be0831ffbe74442bae79f980f9192ec4ce27dff45da74c6d1d9a85dfa06b6
BLAKE2b-256 checksum
How to use checksums
b9a22fdac95d49ddb9d5c3e6abf242c3b58f5f5dadb29ba064a8d173ffb5c014
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.8

Release files / ssmenv2exec-0.0.1-py3-none-any.whl

Download URL ssmenv2exec-0.0.1-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
07c8faeb0a3a90e8df901f2b92a2e81d5f4fc3f6cf895bddf163c9e4812e5aaf
BLAKE2b-256 checksum
How to use checksums
d02945629d18429718b85b105ef44e0193f473d133fe8bcea2cdf862d61b0bcb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.8

Security for ssmenv2exec 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page