forked from aws-samples/eks-blueprints-actions-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
data.tf
72 lines (57 loc) · 1.61 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
data "aws_partition" "current" {}
data "aws_vpc" "eks" {
filter {
name = "tag:Name"
values = [var.vpc_name]
}
}
data "aws_subnets" "eks_selected_private_subnets" {
filter {
name = "tag:Name"
values = ["*private*"]
}
}
data "aws_subnets" "eks_selected_public_subnets" {
filter {
name = "tag:Name"
values = ["*public*"]
}
}
data "aws_subnet" "eks_private_subnets" {
vpc_id = data.aws_vpc.eks.id
for_each = toset(data.aws_subnets.eks_selected_private_subnets.ids)
id = each.value
}
data "aws_subnet" "eks_public_subnets" {
vpc_id = data.aws_vpc.eks.id
for_each = toset(data.aws_subnets.eks_selected_public_subnets.ids)
id = each.value
}
data "aws_eks_cluster_auth" "this" {
name = module.eks_blueprints.eks_cluster_id
}
data "aws_acm_certificate" "issued" {
domain = var.acm_certificate_domain
statuses = ["ISSUED"]
}
data "aws_caller_identity" "current" {}
data "aws_availability_zones" "available" {}
data "aws_secretsmanager_secret_version" "admin_password_version" {
secret_id = aws_secretsmanager_secret.argocd.id
depends_on = [aws_secretsmanager_secret_version.argocd]
}
data "aws_iam_role" "eks_admins" {
name = var.eks_admins_iam_role
}
data "aws_iam_policy" "eks_cni" {
arn = "arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy"
}
data "aws_iam_policy" "eks_worker_node" {
arn = "arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy"
}
data "aws_iam_policy" "ecr_read_only" {
arn = "arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly"
}
data "aws_iam_policy" "instance_core" {
arn = "arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore"
}