Skip to main content

A collection of tools for building infrastructure.

Project description

https://img.shields.io/pypi/v/infrahouse_toolkit.svg Documentation Status https://app.codacy.com/project/badge/Grade/26f8863a19434e3fb578bfa254328e9d

A collection of tools for building infrastructure.

Features

ih-plan

ih-plan is a helper tool to upload/download a Terraform plan.

$ ih-plan --help
Usage: ih-plan [OPTIONS] COMMAND [ARGS]...

  Terraform plan helpers.

Options:
  --bucket TEXT               AWS S3 bucket name to upload/download the plan.
                              By default, parse Terraform backend
                              configuration (see --tf-backend-file) in the
                              current directory.
  --aws-assume-role-arn TEXT  ARN of a role the AWS client should assume.
  --tf-backend-file TEXT      File with Terraform backend configuration.
                              [default: terraform.tf]
  --version                   Show the version and exit.
  --help                      Show this message and exit.

Commands:
  download         Download a file from an S3 bucket.
  min-permissions  Parse Terraform trace file and produce an action list...
  publish          Publish Terraform plan to GitHub pull request.
  remove           Remove a file from an S3 bucket.
  upload           Upload a plan file to an S3 bucket.

Commands upload, download, remove manipulate with plan files on S3.

Command publish prepares a nicely formatted Terraform plan to a pull request so a reviewer can make an informed decision approving a change.

Command min-permissions parses a Terraform trace and figures out the minimal set of permissions needed to execute the plan. Say, you want to reduce permissions of a role running terraform. That’s the use-case.

ih-s3-reprepro

Manage Debian repository in an S3 bucket.

Basically, it’s a cloud version of the good old reprepro.

ih-s3-reprepro uses reprepro underneath plus it adds wrappers around S3 and GPG. The Debian repository is stored in an S3 bucket. ih-s3-reprepro mounts the S3 bucket it locally, pulls a GPG private key from AWS’s secretsmanager and configures the GPG home environment.

$ ih-s3-reprepro --help
Usage: ih-s3-reprepro [OPTIONS] COMMAND [ARGS]...

  Tool to manage deb packages to a Debian repository hosted in an S3 bucket.

Options:
  --bucket TEXT                   AWS S3 bucket with a Debian repo  [required]
  --role-arn TEXT                 Assume this role for all AWS operations
  --gpg-key-secret-id TEXT        AWS secrets manager secret name that stores
                                  a GPG private key.
  --gpg-passphrase-secret-id TEXT
                                  AWS secrets manager secret name that stores
                                  a passphrase to the GPG key.
  --help                          Show this message and exit.

Commands:
  check               Check for all needed files to be registered properly.
  checkpool           Check if all files in the pool are still in proper...
  deleteunreferenced  Remove all known files (and forget them) in the...
  dumpunreferenced    Print a list of all filed believed to be in the...
  includedeb          Include the given binary package.
  list                List all packages by the given name occurring in...
  remove              Delete all packages in the specified distribution,...

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

See git log

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

infrahouse-toolkit-2.11.0.tar.gz (54.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

infrahouse_toolkit-2.11.0-py3-none-any.whl (75.0 kB view details)

Uploaded Python 3

File details

Details for the file infrahouse-toolkit-2.11.0.tar.gz.

File metadata

  • Download URL: infrahouse-toolkit-2.11.0.tar.gz
  • Upload date:
  • Size: 54.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for infrahouse-toolkit-2.11.0.tar.gz
Algorithm Hash digest
SHA256 ab968560f84ecaab58e3b9bf99d7b50cf9f7a1b4cf84eff666e6ce035216112f
MD5 f30b8b4a4aff2921973b2ab914ef7f2f
BLAKE2b-256 6835a806333dc6f09f4e734b846bfa6151f9ba2b23f38fb10be9e6efdd72bcd4

See more details on using hashes here.

File details

Details for the file infrahouse_toolkit-2.11.0-py3-none-any.whl.

File metadata

File hashes

Hashes for infrahouse_toolkit-2.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2ebdf7127dcbb786217bc61ca8e666e6cf9c55efe8ecb98bf92085bfc43500f7
MD5 50f89ceb090ba33c05ad559f82488874
BLAKE2b-256 f1c1d872a78ded44c1f50ab4f92c2b0433bd2aedd76cc488c105f0ad20cb7fda

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