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

     1  variable "foo" {
     2      default = "bar"
     3      description = "bar"
     4  }
     5  
     6  variable "amis" {
     7      default = {
     8          east = "foo"
     9      }
    10  }
    11  
    12  provider "aws" {
    13    access_key = "foo"
    14    secret_key = "bar"
    15  }
    16  
    17  provider "do" {
    18    api_key = "${var.foo}"
    19  }
    20  
    21  resource "aws_security_group" "firewall" {
    22  }
    23  
    24  resource aws_instance "web" {
    25      ami = "${var.amis.east}"
    26      security_groups = [
    27          "foo",
    28          "${aws_security_group.firewall.foo}"
    29      ]
    30  
    31      network_interface {
    32          device_index = 0
    33          description = "Main network interface"
    34      }
    35  
    36      depends_on = ["aws_security_group.firewall"]
    37  }