Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alisdair/tfvars-json
Reads Terraform .tfvars files and outputs JSON
https://github.com/alisdair/tfvars-json
Last synced: 10 days ago
JSON representation
Reads Terraform .tfvars files and outputs JSON
- Host: GitHub
- URL: https://github.com/alisdair/tfvars-json
- Owner: alisdair
- License: mpl-2.0
- Created: 2021-03-18T17:00:51.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-30T14:02:53.000Z (6 months ago)
- Last Synced: 2024-10-12T20:57:20.185Z (24 days ago)
- Language: Go
- Size: 10.7 KB
- Stars: 7
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tfvars-json
`tfvars-json` reads [Terraform](https://github.com/hashicorp/terraform) [`.tfvars` variable definition files](https://www.terraform.io/docs/language/values/variables.html#variable-definitions-tfvars-files) and outputs the same values in Terraform JSON syntax.
## Usage
```shellsession
$ tfvars-json file.tfvars > file.tfvars.json
````tfvars-json` processes a single file and outputs to stdout. You can use a JSON scripting tool like [`jq`](https://stedolan.github.io/jq/) to filter or post-process this output.
## Installation
```shellsession
$ go install github.com/alisdair/tfvars-json@latest
```