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
-----------
1. Install terragrunt-source::
$ pip install terragrunt-source
2. 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
}
3. 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"
}
}
3. And your ``TERRAGRUNT_DEFAULT_MODULES_REPO`` is set to ``/usr/src/modules``.
2. Then we expect::
$ terragrunt-source
/usr/src/modules//lambda
$ echo $TERRAGRUNT_SOURCE
/usr/src/modules//lambda
-----------------
A tool for managing the TERRAGRUNT_SOURCE environment variable
during development.
Quick start
-----------
1. Install terragrunt-source::
$ pip install terragrunt-source
2. 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
}
3. 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"
}
}
3. And your ``TERRAGRUNT_DEFAULT_MODULES_REPO`` is set to ``/usr/src/modules``.
2. 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.0a1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d75882c51a9c8edab77c2e5eb8077e2b4711e9eab742af028e1fbec6f7cd806b |
|
MD5 | e2a3e40d1496aa7c1c7069c2ca1e29a5 |
|
BLAKE2b-256 | 615827efc1411eb894d2f47127a176215fe162b5353dedd947c3049ffd70fb80 |