-
Notifications
You must be signed in to change notification settings - Fork 0
/
data.tf
78 lines (63 loc) · 1.58 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
73
74
75
76
77
78
# data "aws_vpc" "bmb_vpc" {
# filter {
# name = "tag:Name"
# values = [var.vpc_name]
# }
# filter {
# name = "tag:Terraform"
# values = ["true"]
# }
# }
# data "aws_subnets" "private_subnets" {
# filter {
# name = "vpc-id"
# values = [data.aws_vpc.bmb_vpc.id]
# }
# filter {
# name = "tag:Terraform"
# values = ["true"]
# }
# filter {
# name = "tag:kubernetes.io/role/internal-elb"
# values = ["1"]
# }
# }
# data "aws_lb" "eks_payment_elb" {
# tags = {
# "kubernetes.io/service-name" = "fiap-payment/api-internal"
# }
# }
# data "aws_lb" "eks_kitchen_elb" {
# tags = {
# "kubernetes.io/service-name" = "fiap-production/api-internal"
# }
# }
data "aws_lb" "load_balancers" {
for_each = var.services
tags = {
"kubernetes.io/service-name" = "${each.value.namespace}/api-internal"
}
}
# data "aws_lb" "service_elbs" {
# for_each = var.services
# tags = {
# "kubernetes.io/service-name" = "${each.value}/api-internal"
# }
# }
# data "aws_lb_listener" "payment_nlb_listener" {
# load_balancer_arn = data.aws_lb.eks_payment_elb.arn
# port = 80
# }
# data "aws_lb_listener" "kitchen_nlb_listener" {
# load_balancer_arn = data.aws_lb.eks_kitchen_elb.arn
# port = 80
# }
data "aws_cognito_user_pools" "bmb_selected_user_pool" {
name = var.user_pool_name
}
data "archive_file" "lambda_zip" {
type = "zip"
source_dir = "${path.module}/app/cpf-policy-authorizer"
output_file_mode = "0666"
output_path = "${path.module}/files/lambda.zip"
}