-
Notifications
You must be signed in to change notification settings - Fork 0
/
consul_servers.tf
37 lines (31 loc) · 1.2 KB
/
consul_servers.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
27
28
29
30
31
32
33
34
35
36
37
module "consul_virginia" {
source = "git@github.com:chavo1/aws-consul-terraform-multi-region"
consul_version = var.ami_virginia[var.consul_version]
instance_type = var.instance_type
key_name = var.key_name
subnet = module.vpc_virginia.subnet[0]
server_count = var.server_count["virginia"]
dc_net = var.dc_net["dc1"]
dcname = var.dcname["dc1"]
vpc_security_group_id = module.vpc_virginia.aws_security_group[0]
}
module "consul_ohio" {
source = "git@github.com:chavo1/aws-consul-terraform-multi-region"
providers = {
aws = aws.ohio
}
consul_version = var.ami_ohio[var.consul_version]
instance_type = var.instance_type
key_name = var.key_name
subnet = module.vpc_ohio.subnet[0]
server_count = var.server_count["ohio"]
dc_net = var.dc_net["dc2"]
dcname = var.dcname["dc2"]
vpc_security_group_id = module.vpc_ohio.aws_security_group[0]
}
output "public_dns_servers_virginia" {
value = module.consul_virginia.public_dns_servers
}
output "public_dns_servers_ohio" {
value = module.consul_ohio.public_dns_servers
}