Sha256: 61bcf44657fcb4772a86f75496b3ab22fa8c835ebabf38ee0d2ca06b4d843d8e

Contents?: true

Size: 458 Bytes

Versions: 2

Compression:

Stored size: 458 Bytes

Contents

terraform {
  required_version = "~> 0.11.1"
}

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

variable "simple_list" { default = ["list_value_a", "list_value_2"] }

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

  query {
    list = "${jsonencode(var.simple_list)}"
  }
}

resource "local_file" "simple_list" {
  content = "${data.external.simple_list.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_list/simple_list.tf
terraform-template-renderer-0.2.0 examples/simple_list/simple_list.tf