github.com/turtlemonvh/terraform@v0.6.9-0.20151204001754-8e40b6b855e8/config/test-fixtures/basic.tf.json (about)

     1  {
     2      "variable": {
     3          "foo": {
     4              "default": "bar",
     5              "description": "bar"
     6          }
     7      },
     8  
     9      "provider": {
    10          "aws": {
    11              "access_key": "foo",
    12              "secret_key": "bar"
    13          },
    14  
    15          "do": {
    16              "api_key": "${var.foo}"
    17          }
    18      },
    19  
    20      "resource": {
    21          "aws_instance": {
    22              "db": {
    23                  "security_groups": ["${aws_security_group.firewall.*.id}"],
    24                  "VPC": "foo",
    25                  "depends_on": ["aws_instance.web"],
    26  
    27                  "provisioner": [{
    28                      "file": {
    29                          "source": "foo",
    30                          "destination": "bar"
    31                      }
    32                  }]
    33              },
    34  
    35              "web": {
    36                  "ami": "${var.foo}",
    37                  "security_groups": [
    38                      "foo",
    39                      "${aws_security_group.firewall.foo}"
    40                  ],
    41                  "network_interface": {
    42                      "device_index": 0,
    43                      "description": "Main network interface"
    44                  },
    45  
    46                  "provisioner": {
    47                      "file": {
    48                          "source": "foo",
    49                          "destination": "bar"
    50                      }
    51                  }
    52              }
    53          },
    54  
    55          "aws_security_group": {
    56              "firewall": {
    57                  "count": 5
    58              }
    59          }
    60      },
    61  
    62      "output": {
    63          "web_ip": {
    64              "value": "${aws_instance.web.private_ip}"
    65          }
    66      },
    67  
    68      "atlas": {
    69          "name": "mitchellh/foo"
    70      }
    71  }