-
-
Notifications
You must be signed in to change notification settings - Fork 179
/
data.tf
58 lines (45 loc) · 1.04 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
data "aws_vpc" "eks" {
id = "${module.vpc.vpc_id}"
}
data "aws_subnet_ids" "private" {
vpc_id = data.aws_vpc.eks.id
tags = {
Name = "${var.cluster-name}-eks-private"
}
}
data "aws_subnet_ids" "public" {
vpc_id = data.aws_vpc.eks.id
tags = {
Name = "${var.cluster-name}-eks-public"
}
}
data "aws_security_group" "cluster" {
vpc_id = data.aws_vpc.eks.id
name = "${module.cluster-sg.this_security_group_name}"
}
data "aws_security_group" "node" {
vpc_id = data.aws_vpc.eks.id
name = "${module.node-sg.this_security_group_name}"
}
data "aws_security_group" "bastion" {
vpc_id = data.aws_vpc.eks.id
name = "${module.ssh_sg.this_security_group_name}"
}
data "aws_ami" "bastion" {
most_recent = true
owners = ["137112412989"]
filter {
name = "name"
values = [
"amzn2-ami-hvm-*-x86_64-gp2",
]
}
}
data "aws_ami" "eks-worker-ami" {
filter {
name = "name"
values = ["amazon-eks-node-${var.k8s-version}-*"]
}
most_recent = true
owners = ["602401143452"] # Amazon
}