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.10.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.10.0-py3-none-any.whl (75.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: infrahouse-toolkit-2.10.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.10.0.tar.gz
Algorithm Hash digest
SHA256 6807a334a7c35b14c205f16c7e6920cca1e3bbd1aa7b8d95fc7edfb55e228960
MD5 a44971fb14cc63babe606e6253a0a1be
BLAKE2b-256 c2957072be73444923520ce87050a055d8bebd38654bf0f1cbf820edf44bb9e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for infrahouse_toolkit-2.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3a01830565c791fc131d8e19542ddceab928efbdc6ad92909bfa0bd68174053e
MD5 93ab86efed43d1517fecdc3df273cba6
BLAKE2b-256 65f7f387789c9289380d22c67a800a1b44c194d183bb5c16a19bdc5f9d318730

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