Skip to main content

Push your git-secret protected configuration parameters to AWS Parameter Store using roles for multiple accounts

Project description

# hush-push

## Installation

`pip install --user hush-push`

## Usage
```
usage: hush [-h] [--version] [--execute] [--overwrite] [--verbose]
[--remote-endpoint REMOTE_ENDPOINT]

Hello world

optional arguments:
-h, --help show this help message and exit
--version show the current version
--execute, -e create the specified configuration parameters
--overwrite, -o force put the configuration parameters even if they
already exist
--verbose, -v enable verbose logging
--remote-endpoint REMOTE_ENDPOINT, -r REMOTE_ENDPOINT
specify remote endpoint
```

## Pre-requisites
You need to specify which configuration file to use by setting the environment variable `AWS_CONFIG_FILE` to the absolute path of your configuration file.

## Directory structure

The directory structure need to be organized in folders at the root of your project. The first folder name should be equal to the profile name specified in the configuration file to use for the call. If your config looks like this:
```ini
[profile accProfile]
role_arn = arn:aws:iam::000000000000:role/ROLE
region = eu-west-1
source_profile = default
```
You must put your configuration parameters in the following structure under the directory `secrets/`:
```
<project-root>:
secrets/
accProfile/
parameterName
```

If the `parameterName` is a folder structure, the configuration parameter name will be a concatenated version of those. If the folder structure looks like this:
```
<project-root>:
secrets/
accProfile/
eu-west-1/
staging/
remoteEndpoint
```
the parameter name will look like this: `/eu-west-1/staging/remoteEndpoint` with the value of the parameter set to the content of the file `remoteEndpoint`

## Development

To build the dist: `python3 setup.py sdist bdist_wheel` and answer "no" to the question if it's a production release. To upload the created dist run `python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*` and sign in with your username and password.

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

hush-push-0.3.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

hush_push-0.3.0-py2-none-any.whl (7.4 kB view details)

Uploaded Python 2

File details

Details for the file hush-push-0.3.0.tar.gz.

File metadata

  • Download URL: hush-push-0.3.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.13

File hashes

Hashes for hush-push-0.3.0.tar.gz
Algorithm Hash digest
SHA256 400c20f50ccf299a72d7cee60e19f0a81b6df0baa3a478d77f04e1f04fb2b842
MD5 f12675c9aff9e5496ef0c2e683af07a8
BLAKE2b-256 8e3968edd3d1a66a1210064238e7186112ca78ca1cbf8963e365f271685ea697

See more details on using hashes here.

File details

Details for the file hush_push-0.3.0-py2-none-any.whl.

File metadata

  • Download URL: hush_push-0.3.0-py2-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.13

File hashes

Hashes for hush_push-0.3.0-py2-none-any.whl
Algorithm Hash digest
SHA256 357b9dc3a8db56c91b6c4974f9984f25113702c1d1f4ac0f8dcfc3d53ec3889f
MD5 392fbecc9d63f72ea7b4ccf4ef13b70b
BLAKE2b-256 21077ae7bf7bf72d0381d6a9b95f8f765af9dee111733a26cfa5d17bb4ee0333

See more details on using hashes here.

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