Skip to main content

A Terraform commentator.

Project description

terratalk

build and publish Coverage Status PyPI PyPI - Downloads License

Terratalk is a simple tool to add an opinionated terraform plan output into your pull-request as a comment. This allows you to have a quick feedback on infrastructure changes without having to leave the context of your pull-request view.

Setup

Prerequisite

This tool relies on either Bitbucket Branch Source or GitHub Branch Source to be installed as a plugin on your Jenkins. Alternatively you can set the environment variable CHANGE_URL to the URL of the pull-request which will allow terratalk to construct the proper API request to your SCM.

GitLab is currently only supported from gitlab-pipelines.

Installation

On the build agent, install terratalk:

$ pip install --user terratalk

If you are using GitHub you will additionally need to install the following:

$ pip install --user PyGithub

If you are using GitLab you will additionally need to install the following:

$ pip install --user python-gitlab

Running

Execute in the same directory, optionally with the same TF_DATA_DIR as you would normally run terraform. If you use tfenv that will work as well.

$ terraform plan -out WORKSPACE.plan
$ terratalk comment -w WORKSPACE

Supported providers

Bitbucket Server (Jenkins)

  • STASH_USER
  • STASH_PASS

Bitbucket Cloud (Jenkins)

  • BITBUCKET_USERNAME
  • BITBUCKET_APP_PASSWORD

GitHub (Jenkins)

  • GITHUB_TOKEN

GitLab (pipelines)

  • GITLAB_TOKEN

Gitea (actions)

  • TERRATALK_GITEA_TOKEN

Results

terratalk on Bitbucket Server

License

MIT

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

terratalk-0.5.1.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

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

terratalk-0.5.1-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file terratalk-0.5.1.tar.gz.

File metadata

  • Download URL: terratalk-0.5.1.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for terratalk-0.5.1.tar.gz
Algorithm Hash digest
SHA256 41ad0617f2f7d0ee26656c95e2345be9e6ce55353add54ae258b4bbd09508897
MD5 54521c87d1e7f1a673ea2efb13b80654
BLAKE2b-256 0fc1f6ac49a3a10caeacd36af81cface09d3514d5325452934ca2ad161cf35af

See more details on using hashes here.

Provenance

The following attestation bundles were made for terratalk-0.5.1.tar.gz:

Publisher: build-and-publish.yml on lifeofguenter/terratalk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file terratalk-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: terratalk-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for terratalk-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cc3197748f3ad239384f298701f61e8299f9ea735fd127e83c8166f1e6f6a4fc
MD5 1baec42292da5d8a5bb27fbb38fe7ef4
BLAKE2b-256 8db997d167acef3d33248eebaf6a0a0ed6ecd461399852d04c15af6110e740ee

See more details on using hashes here.

Provenance

The following attestation bundles were made for terratalk-0.5.1-py3-none-any.whl:

Publisher: build-and-publish.yml on lifeofguenter/terratalk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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