https://github.com/zaap59/vartf2tfvar
Go script to convert variable.tf into tfvars format
https://github.com/zaap59/vartf2tfvar
go golang script terraform terraform-variables tooling
Last synced: 9 days ago
JSON representation
Go script to convert variable.tf into tfvars format
- Host: GitHub
- URL: https://github.com/zaap59/vartf2tfvar
- Owner: zaap59
- Created: 2019-12-12T13:50:19.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-03T16:29:43.000Z (almost 6 years ago)
- Last Synced: 2024-11-15T03:47:00.571Z (about 1 year ago)
- Topics: go, golang, script, terraform, terraform-variables, tooling
- Language: HCL
- Size: 1.95 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vartf2tfvar
## Overview [](https://godoc.org/github.com/zaap59/vartf2tfvar)
Convert variable.tf to tfvars format.
## Install
```sh
go get github.com/zaap59/vartf2tfvar/vartf2tfvar
```
## Build
```sh
cd vartf2tfvar
go build -o vartf2tfvar .
```
## Usage
```sh
./vartf2tfvar
Usage: ./vartf2tfvar [OPTIONS] argument ...
-file string
a string var (default "variables.tf")
```
## Example
```sh
./vartf2tfvar -file ../variables-sample.tf
alb_name = ""
alb_sg = ""
alb_target_health_check = ""
alb_target_port = ""
app_name = ""
app_private_dns = ""
owner = ""
user_sg_ids = ""
```
## License
MIT.