github.com/mohanarpit/terraform@v0.6.16-0.20160909104007-291f29853544/config/test-fixtures/basic.tf.json (about)

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