-
Notifications
You must be signed in to change notification settings - Fork 0
/
data.tf
36 lines (29 loc) · 880 Bytes
/
data.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
data "template_file" "user_data_server" {
template = "${file("${path.module}/scripts/user-data-server.sh")}"
vars {
cluster_tag_key = "${var.cluster_tag_key}"
cluster_tag_value = "${var.cluster_name}"
num_servers = "${var.num_nomad_servers}"
}
}
data "template_file" "user_data_client" {
template = "${file("${path.module}/scripts/user-data-client.sh")}"
vars {
cluster_tag_key = "${var.cluster_tag_key}"
cluster_tag_value = "${var.cluster_name}"
}
}
data "template_file" "user_data_vault" {
template = "${file("${path.module}/scripts/user-data-vault.sh")}"
vars {
cluster_tag_key = "${var.cluster_tag_key}"
cluster_tag_value = "${var.cluster_name}"
}
}
data "aws_subnet_ids" "default" {
vpc_id = "${module.vpc.vpc_id}"
}
data "aws_route53_zone" "domain" {
name = "${var.domain_name}."
private_zone = false
}