terraform/config/test-fixtures/basic.tf.json

104 lines
2.3 KiB
JSON
Raw Normal View History

2014-07-28 19:43:00 +02:00
{
"variable": {
"foo": {
"default": "bar",
"description": "bar"
},
"bar": {
"type": "string"
},
"baz": {
"type": "map",
"default": {
"key": "value"
}
2014-07-28 19:43:00 +02:00
}
},
"provider": {
"aws": {
"access_key": "foo",
"secret_key": "bar"
},
"do": {
"api_key": "${var.foo}"
}
},
"data": {
"do": {
"simple": {
"foo": "baz"
},
"depends": {
"depends_on": ["data.do.simple"]
}
}
},
2014-07-28 19:43:00 +02:00
"resource": {
"aws_instance": {
"db": {
"security_groups": ["${aws_security_group.firewall.*.id}"],
"VPC": "foo",
"depends_on": ["aws_instance.web"],
"provisioner": [{
"file": {
"source": "foo",
"destination": "bar"
}
}]
2014-07-28 19:43:00 +02:00
},
"web": {
"ami": "${var.foo}",
"security_groups": [
"foo",
"${aws_security_group.firewall.foo}"
],
"network_interface": {
"device_index": 0,
"description": "Main network interface"
},
"provisioner": {
"file": {
"source": "foo",
"destination": "bar"
}
2014-07-28 19:43:00 +02:00
}
}
},
"aws_security_group": {
"firewall": {
"count": 5
}
}
},
"locals": {
"security_group_ids": "${aws_security_group.firewall.*.id}",
"web_ip": "${aws_instance.web.private_ip}",
"literal": 2,
"literal_list": ["foo"],
"literal_map": {"foo": "bar"}
},
2014-07-28 19:43:00 +02:00
"output": {
"web_id": {
"description": "The ID",
"value": "${aws_instance.web.id}"
},
2014-07-28 19:43:00 +02:00
"web_ip": {
"value": "${aws_instance.web.private_ip}"
}
2015-03-05 21:56:31 +01:00
},
"atlas": {
"name": "mitchellh/foo"
2014-07-28 19:43:00 +02:00
}
}