Skip to main content

Python script to push and pull application config

This script is used to push and pull secrets, s3 config and ssm values for use in applications.

Usage

Pushing Config

Usage: croudtech-bootstrap put-config [OPTIONS] VALUES_PATH

Options:
  --prefix TEXT   The path prefix (Name prefix used when storing secrets and SSM values)
  --region TEXT   The AWS region (Defaults to the current region set using AWS_DEFAULT_REGION or AWS_REGION env vars)
  --delete-first  Delete the values in this path before pushing (useful for cleanup) This will remove any values with the current path prefix that aren't included in the files we're pushing.
  --help          Show this message and exit.

The put-config command requires the following file structure:

├── ENVIRONMENT_NAME_1
│   ├── common.yaml
│   ├── common.secret.yaml
│   ├── AppConfig1.yaml
│   ├── AppConfig1.secret.yaml
│   ├── AppConfig2.yaml
│   └── AppConfig2.secret.yaml
├── ENVIRONMENT_NAME_2
│   ├── common.yaml
│   ├── common.secret.yaml
│   ├── AppConfig1.yaml
│   ├── AppConfig1.secret.yaml
│   ├── AppConfig2.yaml
│   └── AppConfig2.secret.yaml

Running python -m croudtech-bootstrap put-config CONFIG_FILES_PATH will create config for AppConfig1 and AppConfig2 in both defined environments.

common.yaml and common.secret.yaml files contain shared config that will be used for all applications.

Pulling config

Usage: croudtech-bootstrap get-config [OPTIONS]

Options:
  --environment-name TEXT         The environment name  [required]
  --app-name TEXT                 The app name  [required]
  --prefix TEXT                   The path prefix
  --region TEXT                   The AWS region
  --include-common / --ignore-common
                                  Include shared variables
  --output-format [json|yaml|environment|environment-export]
  --parse-redis-param / --ignore-redis-param
                                  Parse redis host and allocate a redis
                                  database number. Requires network access to the redis instance
  --help                          Show this message and exit.

Using the put-config example above we can pull the config as follows

croudtech-bootstrap get-config --environment-name ENVIRONMENT_NAME_1 --app-name AppConfig1 --output-format environment

Installation

pip install croudtech-bootstrap

Metadata

Release files for croudtech-bootstrap 0.1.61

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

Source distribution (sdist)

Source distribution for croudtech-bootstrap 0.1.61
File Size Uploaded Provenance Actions
croudtech_bootstrap-0.1.61.tar.gz 12.9 kB Without provenance Details for croudtech_bootstrap-0.1.61.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for croudtech-bootstrap 0.1.61
File Interpreter ABI Platform Actions
croudtech_bootstrap-0.1.61-py3-none-any.whl Python 3 none any Details for croudtech_bootstrap-0.1.61-py3-none-any.whl

Total release size: 30.6 kB

Release files / croudtech_bootstrap-0.1.61.tar.gz

Download URL croudtech_bootstrap-0.1.61.tar.gz
Size 12.9 kB
Tags Source
SHA-256 checksum
How to use checksums
551c4e2caa93bbd3bc4cc6a27576f7e78c76e7789d6da20d948fdf726927b8d0
BLAKE2b-256 checksum
How to use checksums
071c93c40edf0d4d739b5f94bc32536ab04e64c00ecb0e8118dcaadf6ba4c294
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.2 CPython/3.12.16 Linux/7.0.0-1020-azure

Release files / croudtech_bootstrap-0.1.61-py3-none-any.whl

Download URL croudtech_bootstrap-0.1.61-py3-none-any.whl
Size 17.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
74cbd2d630262f38ee4d37dfa16efb0c42d5571ad8f5a286a6899fc9fc5c8652
BLAKE2b-256 checksum
How to use checksums
e13c9dd71511a7560432b1f00b786d8224853e1969bfdb0fb7ea127709f92b34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.2 CPython/3.12.16 Linux/7.0.0-1020-azure

Security for croudtech-bootstrap 0.1.61

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.1.61 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