hclparser v0.1.0 HCLParser View Source

Link to this section Summary

Functions

Parses a terraform file, and returns a map structure representing it.

Link to this section Functions

Parses a terraform file, and returns a map structure representing it.

Parameters

  • content: String that represents the content of the terraform file.

Examples

iex> content = 'provider "google" {}'

iex> HCLParser.parse(content)
{:ok, %{"provider" => %{"google" => {}}}}