Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lukaszkorecki/hcl-playground


https://github.com/lukaszkorecki/hcl-playground

Last synced: 21 days ago
JSON representation

Awesome Lists containing this project

README

        

# HCL playground

Steps:

```shell
terraform apply && terraform output out_yaml | ruby -ryaml -rpp -e 'pp YAML.load(ARGF.read)'
```

output should be:

```ruby
{"env"=>
[{"name"=>"PG_HOST", "value"=>"some.host.internal"},
{"name"=>"PORT", "value"=>1234},
{"name"=>"SOME_SECRET", "value"=>"pineapples are 1337"}]}
```

Read more about this project here: https://korecki.me/blog/2020/3/7/quickly-testing-hcl-expressions