OSDN Git Service

Hulk did something
[bytom/vapor.git] / vendor / github.com / hashicorp / hcl / hcl / printer / testdata / complexhcl.input
1 variable "foo" {
2        default = "bar"
3     description =     "bar"
4 }
5
6 developer = [     "fatih",       "arslan"]
7
8 provider "aws" {
9                             access_key ="foo"
10      secret_key =         "bar"
11 }
12
13           provider "do" {
14   api_key = "${var.foo}"
15 }
16
17 resource "aws_security_group" "firewall" {
18           count = 5
19       }
20
21     resource aws_instance "web" {
22       ami = "${var.foo}"
23            security_groups = [
24             "foo",
25             "${aws_security_group.firewall.foo}"
26                   ]
27
28            network_interface {
29                  device_index = 0
30                     description = "Main network interface"
31         }
32
33            network_interface = {
34                  device_index = 1
35                     description = <<EOF
36 ANOTHER NETWORK INTERFACE
37 EOF
38         }
39     }
40
41 resource "aws_instance" "db" {
42         security_groups = "${aws_security_group.firewall.*.id}"
43     VPC = "foo"
44
45     depends_on = ["aws_instance.web"]
46 }
47
48 output "web_ip" {
49
50     value=<<EOF
51 TUBES
52 EOF
53 }