From 94c0e1e8d42e1b06392bf30797a708db4cf5c404 Mon Sep 17 00:00:00 2001 From: Fatih Arslan Date: Sun, 25 Oct 2015 18:18:26 +0300 Subject: [PATCH] printer: mess up input :) --- printer/testdata/complexhcl.input | 44 +++++++++++++++++-------------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/printer/testdata/complexhcl.input b/printer/testdata/complexhcl.input index cccb5b0..fa0ea8e 100644 --- a/printer/testdata/complexhcl.input +++ b/printer/testdata/complexhcl.input @@ -1,42 +1,46 @@ // This comes from Terraform, as a test variable "foo" { - default = "bar" - description = "bar" + default = "bar" + description = "bar" } provider "aws" { - access_key = "foo" - secret_key = "bar" + access_key ="foo" + secret_key = "bar" } -provider "do" { + provider "do" { api_key = "${var.foo}" } resource "aws_security_group" "firewall" { - count = 5 -} + count = 5 + } -resource aws_instance "web" { - ami = "${var.foo}" - security_groups = [ - "foo", - "${aws_security_group.firewall.foo}" - ] - - network_interface { - device_index = 0 - description = "Main network interface" + resource aws_instance "web" { + ami = "${var.foo}" + security_groups = [ + "foo", + "${aws_security_group.firewall.foo}" + ] + + network_interface { + device_index = 0 + description = "Main network interface" + } } -} resource "aws_instance" "db" { - security_groups = "${aws_security_group.firewall.*.id}" + security_groups = "${aws_security_group.firewall.*.id}" VPC = "foo" depends_on = ["aws_instance.web"] + + + } output "web_ip" { - value = "${aws_instance.web.private_ip}" + + value="${aws_instance.web.private_ip}" }