-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
main.tf
26 lines (24 loc) · 749 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Setup the core provider information.
provider "aws" {
region = "${var.region}"
}
// Create the consul-cluster, based on our consul module.
module "consul-cluster" {
source = "./modules/consul"
region = "${var.region}"
amisize = "t2.micro"
min_size = "5"
max_size = "5"
vpc_cidr = "10.0.0.0/16"
subnetaz1 = "${var.subnetaz1}"
subnetaz2 = "${var.subnetaz2}"
subnet_cidr1 = "10.0.1.0/24"
subnet_cidr2 = "10.0.2.0/24"
key_name = "consul-cluster"
public_key_path = "${var.public_key_path}"
asgname = "consul-asg"
}
// We'll also show the DNS to the consul cluster.
output "consul-dns" {
value = "${module.consul-cluster.consul-dns}"
}