github.com/erriapo/terraform@v0.6.12-0.20160203182612-0340ea72354f/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      "resource": {
    30          "aws_instance": {
    31              "db": {
    32                  "security_groups": ["${aws_security_group.firewall.*.id}"],
    33                  "VPC": "foo",
    34                  "depends_on": ["aws_instance.web"],
    35  
    36                  "provisioner": [{
    37                      "file": {
    38                          "source": "foo",
    39                          "destination": "bar"
    40                      }
    41                  }]
    42              },
    43  
    44              "web": {
    45                  "ami": "${var.foo}",
    46                  "security_groups": [
    47                      "foo",
    48                      "${aws_security_group.firewall.foo}"
    49                  ],
    50                  "network_interface": {
    51                      "device_index": 0,
    52                      "description": "Main network interface"
    53                  },
    54  
    55                  "provisioner": {
    56                      "file": {
    57                          "source": "foo",
    58                          "destination": "bar"
    59                      }
    60                  }
    61              }
    62          },
    63  
    64          "aws_security_group": {
    65              "firewall": {
    66                  "count": 5
    67              }
    68          }
    69      },
    70  
    71      "output": {
    72          "web_ip": {
    73              "value": "${aws_instance.web.private_ip}"
    74          }
    75      },
    76  
    77      "atlas": {
    78          "name": "mitchellh/foo"
    79      }
    80  }