A tool for managing the TERRAGRUNT_SOURCE environment variable during development
Project description
terragrunt-source
A tool for managing the TERRAGRUNT_SOURCE environment variable during development.
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() { unset TERRAGRUNT_SOURCE export TERRAGRUNT_SOURCE=$($(which terragrunt-source)); echo $TERRAGRUNT_SOURCE }
Reload your ~/.bashrc:
$ source ~/.bashrc
Example
1. If you are in a directory that contains a terraform.tfvars 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 your TERRAGRUNT_DEFAULT_MODULES_REPO is set to /usr/src/modules.
Then we expect:
$ terragrunt-source /usr/src/modules//lambda $ echo $TERRAGRUNT_SOURCE /usr/src/modules//lambda
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for terragrunt_source-0.1.0a2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6619814ba94e46dfb35791d1473b58d1d09aad9446fc654bf1bb4994ae7348d |
|
MD5 | f214672d53641a5415301a7448b6aa68 |
|
BLAKE2b-256 | cf1fcc0755769907ad904208038ade8c2d3c7d55a8497c8f69c7083a33a8c208 |