A Terraform commentator.
Project description
terratalk
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_USERSTASH_PASS
Bitbucket Cloud (Jenkins)
BITBUCKET_USERNAMEBITBUCKET_APP_PASSWORD
GitHub (Jenkins)
GITHUB_TOKEN
GitLab (pipelines)
GITLAB_TOKEN
Gitea (actions)
TERRATALK_GITEA_TOKEN
Results
License
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41ad0617f2f7d0ee26656c95e2345be9e6ce55353add54ae258b4bbd09508897
|
|
| MD5 |
54521c87d1e7f1a673ea2efb13b80654
|
|
| BLAKE2b-256 |
0fc1f6ac49a3a10caeacd36af81cface09d3514d5325452934ca2ad161cf35af
|
Provenance
The following attestation bundles were made for terratalk-0.5.1.tar.gz:
Publisher:
build-and-publish.yml on lifeofguenter/terratalk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
terratalk-0.5.1.tar.gz -
Subject digest:
41ad0617f2f7d0ee26656c95e2345be9e6ce55353add54ae258b4bbd09508897 - Sigstore transparency entry: 176190325
- Sigstore integration time:
-
Permalink:
lifeofguenter/terratalk@72bd23ad169fde0bdb0bd336efe503faa010b966 -
Branch / Tag:
refs/tags/0.5.1 - Owner: https://github.com/lifeofguenter
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-and-publish.yml@72bd23ad169fde0bdb0bd336efe503faa010b966 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc3197748f3ad239384f298701f61e8299f9ea735fd127e83c8166f1e6f6a4fc
|
|
| MD5 |
1baec42292da5d8a5bb27fbb38fe7ef4
|
|
| BLAKE2b-256 |
8db997d167acef3d33248eebaf6a0a0ed6ecd461399852d04c15af6110e740ee
|
Provenance
The following attestation bundles were made for terratalk-0.5.1-py3-none-any.whl:
Publisher:
build-and-publish.yml on lifeofguenter/terratalk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
terratalk-0.5.1-py3-none-any.whl -
Subject digest:
cc3197748f3ad239384f298701f61e8299f9ea735fd127e83c8166f1e6f6a4fc - Sigstore transparency entry: 176190326
- Sigstore integration time:
-
Permalink:
lifeofguenter/terratalk@72bd23ad169fde0bdb0bd336efe503faa010b966 -
Branch / Tag:
refs/tags/0.5.1 - Owner: https://github.com/lifeofguenter
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-and-publish.yml@72bd23ad169fde0bdb0bd336efe503faa010b966 -
Trigger Event:
push
-
Statement type: