Sha256: 5039c828c835caae4bb3f4a6ef82c67eebd0d3bd1d808a2c490ac95e105fe43f

Contents?: true

Size: 467 Bytes

Versions: 2

Compression:

Stored size: 467 Bytes

Contents

terraform {
  required_version = "~> 0.11.1"
}

provider "external" {
  version = "~> 1.0.0"
}

variable "simple_map" {
  default = {
    key1 = "value1"
    key2 = "value2"
  }
} 

data "external" "simple_map" {
  program = ["bundle", "exec", "render-template", "simple_map.erb"]

  query {
    map = "${jsonencode(var.simple_map)}"
  }
}

resource "local_file" "simple_map" {
  content = "${data.external.simple_map.result.rendered}"
  filename = "sample_output"
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
terraform-template-renderer-0.3.0 examples/simple_map/simple_map.tf
terraform-template-renderer-0.2.0 examples/simple_map/simple_map.tf