ubnetdef / genesis

Next generation competition deployment and management
https://comp-genesis.readthedocs.io
MIT License
0 stars 0 forks source link

Terraform: Create output formatter #11

Open jtdroste opened 6 years ago

jtdroste commented 6 years ago

Currently the terraform deployment step is a bunch of strings, with format placed in. Pretty ugly.

Let's write a formatter for it. Language seems pretty easy

(provider|data|resource) "{resource-name}" "{alias}" {
     [keyvalue|dict]
}

keyvalue: key = (value|[value|...])

dict: key { [keyvalue|dict] }
jtdroste commented 6 years ago

This is a noop, terraform supports json as well as their language (HCL)