github.com/dahs81/otto@v0.2.1-0.20160126165905-6400716cf085/builtin/foundation/consul/data/aws-simple/deploy/main.tf (about)

     1  provider "aws" {
     2      access_key = "${var.aws_access_key}"
     3      secret_key = "${var.aws_secret_key}"
     4      region = "${var.region}"
     5  }
     6  
     7  module "consul-1" {
     8      source = "./module-aws-simple"
     9  
    10      index = "1"
    11      private-ip = "10.0.2.6"
    12      ami = "${var.ami}"
    13      key-name = "${var.key_name}"
    14      subnet-id = "${var.subnet_public}"
    15      vpc-id = "${var.vpc_id}"
    16      vpc-cidr = "${var.vpc_cidr}"
    17  }
    18  
    19  output "consul_address" {
    20      value = "${module.consul-1.address}"
    21  }