github.com/sathish1597/hashicorp-terraform@v0.11.12-beta1/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 "locals": { 83 "security_group_ids": "${aws_security_group.firewall.*.id}", 84 "web_ip": "${aws_instance.web.private_ip}", 85 "literal": 2, 86 "literal_list": ["foo"], 87 "literal_map": {"foo": "bar"} 88 }, 89 90 "output": { 91 "web_id": { 92 "description": "The ID", 93 "value": "${aws_instance.web.id}" 94 }, 95 "web_ip": { 96 "value": "${aws_instance.web.private_ip}" 97 } 98 }, 99 100 "atlas": { 101 "name": "mitchellh/foo" 102 } 103 }