This release is a pre-release and may not be stable for production use.
Project description
A Terragrunt rapid development tool to simplify overriding the source parameter in a terraform.tfvars file.
Introduction
terragrunt-source is a simple script that parses the source line from the terraform.tfvars file in the current working directory producing a path to a local source tree that can be used by terragrunt during development. The path to the local source tree is looked up in the environment variable TERRAGRUNT_DEFAULT_MODULES_REPO.
This is best illustrated be an example. If you are in a directory that contains a terraform.tfvars file with the following content:
terragrunt = {
include {
path = "${find_in_parent_folders()}"
}
terraform {
source = "git::git@github.com:org/repo.git//lambda?ref=v0.6.2"
}
}
And if TERRAGRUNT_DEFAULT_MODULES_REPO is set to /usr/src/modules then then we expect the following output:
$ terragrunt-source /usr/src/modules//lambda
Then we can use terragrunt like so:
$ terragrunt plan --terragrunt-source `terragrunt-source`
Another way this can be run is as follows:
$ TERRAGRUNT_SOURCE=`terragrunt-source` terragrunt plan
Quick start
Install terragrunt-source:
$ pip install terragrunt-source
Append the following to your ~/.bashrc:
export TERRAGRUNT_DEFAULT_MODULES_REPO=/path/to/your/checked/out/code terragrunt-source() { TERRAGRUNT_SOURCE=$($(which terragrunt-source)) terragrunt $@ }Reload your ~/.bashrc:
$ source ~/.bashrc
Change to a Terragrunt configuration directory:
$ terragrunt-source plan
Metadata
Release files for terragrunt-source 0.1.0a3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| terragrunt_source-0.1.0a3-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for terragrunt_source-0.1.0a3-py2.py3-none-any.whl |
Release files / terragrunt_source-0.1.0a3-py2.py3-none-any.whl
| Download URL | terragrunt_source-0.1.0a3-py2.py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
946aa530d965f597b676bd69d1c28a3bde7878705d6ed08c8ac68db47312b10d
|
|
BLAKE2b-256 checksum How to use checksums |
8923d92298c0f67562d4462cf357c9f2071babdb85a8cadfc5910c55b3a99149
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for terragrunt-source 0.1.0a3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.