Terraform developer tool to extract variables and create variables.tf files.
Project description
Terraform developer tool to extract variables and create variables.tf
files.
simply
pip install scratchrelaxtv
In a directory with a main.tf
file, run scratchrelaxtv:
$ ls
main.tf
$ scratchrelaxtv
$ ls
main.tf variables.tf
details
variables.tf
By default, it looks for main.tf
and will keep variables in the resulting variables.tf
in the order found in the main.tf
. If variables are included more than once, they will only be listed once in the resulting variables.tf
. If you do not --force
overwriting, scratchrelaxtv will create new variables.tf
files with each run: variables.1.tf
, variables.2.tf
and so on.
modstub.tf
scratchrelaxtv can also be used to generate a module usage stub. By default, it looks for variables.tf
and will keep variables in the resulting modstub.tf
in the order found in the variables.tf
. If variables are included more than once, they will only be listed once in the resulting modstub.tf
. If you do not --force
overwriting, scratchrelaxtv will create new modstub.tf
files with each run: modstub.1.tf
, modstub.2.tf
and so on.
scratchrelaxtv includes help:
$ scratchrelaxtv --help
usage: scratchrelaxtv [-h] [-i INPUT] [-o OUTPUT] [-f] [-m] [-n MODNAME]
[-a | -d]
optional arguments:
-h, --help show this help message and exit
-i INPUT, --input INPUT
file to extract vars from
-o OUTPUT, --output OUTPUT
file to write extracted vars to
-f, --force overwrite existing out file
-m, --modstub create module usage stub
-n MODNAME, --modname MODNAME
name to use in module stub
-a, --asc sort output variables in ascending order
-d, --desc sort output variables in descending order
CHANGE LOG
0.1.3 - 2019.04.17
- Add module stub capability
0.1.2 - 2019.04.17
- Add simple docs
0.1.1 - 2019.04.16
- Initial working version
0.1.0 - 2019.04.15
- Initial release!
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
Hashes for scratchrelaxtv-0.1.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3113eadc038cc9bc1f41b27296e6b6ec4016973c534251a7d99923ae579b2535 |
|
MD5 | a9537046ac0c1565c693b6ac213a5291 |
|
BLAKE2b-256 | ef866601da7fa698afa2c7cc6c742aef7bdc00aac0fa017b7f3f2f13ad556dbc |