-
Notifications
You must be signed in to change notification settings - Fork 2
/
sns.tf
executable file
·89 lines (73 loc) · 2.23 KB
/
sns.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
79
80
81
82
83
84
85
86
87
88
89
resource "aws_sns_topic" "queryVCF" {
name = "queryVCF"
}
resource "aws_sns_topic_subscription" "queryVCF" {
topic_arn = aws_sns_topic.queryVCF.arn
protocol = "lambda"
endpoint = module.lambda-queryVCF.function_arn
}
resource "aws_sns_topic" "queryVCFsubmit" {
name = "queryVCFsubmit"
}
resource "aws_sns_topic_subscription" "queryVCFsubmit" {
topic_arn = aws_sns_topic.queryVCFsubmit.arn
protocol = "lambda"
endpoint = module.lambda-queryVCFsubmit.function_arn
}
resource "aws_sns_topic" "queryGTF" {
name = "queryGTF"
}
resource "aws_sns_topic_subscription" "queryGTF" {
topic_arn = aws_sns_topic.queryGTF.arn
protocol = "lambda"
endpoint = module.lambda-queryGTF.function_arn
}
resource "aws_sns_topic" "pluginConsequence" {
name = "pluginConsequence"
}
resource "aws_sns_topic_subscription" "pluginConsequence" {
topic_arn = aws_sns_topic.pluginConsequence.arn
protocol = "lambda"
# TODO: Reference function_arn once the module source is updated
endpoint = module.lambda-pluginConsequence.lambda_function_arn
}
resource "aws_sns_topic" "pluginUpdownstream" {
name = "pluginUpdownstream"
}
resource "aws_sns_topic_subscription" "pluginUpdownstream" {
topic_arn = aws_sns_topic.pluginUpdownstream.arn
protocol = "lambda"
endpoint = module.lambda-pluginUpdownstream.function_arn
}
resource "aws_sns_topic" "concat" {
name = "concat"
}
resource "aws_sns_topic_subscription" "concat" {
topic_arn = aws_sns_topic.concat.arn
protocol = "lambda"
endpoint = module.lambda-concat.function_arn
}
resource "aws_sns_topic" "concatStarter" {
name = "concatStarter"
}
resource "aws_sns_topic_subscription" "concatStarter" {
topic_arn = aws_sns_topic.concatStarter.arn
protocol = "lambda"
endpoint = module.lambda-concatStarter.function_arn
}
resource "aws_sns_topic" "createPages" {
name = "createPages"
}
resource "aws_sns_topic_subscription" "createPages" {
topic_arn = aws_sns_topic.createPages.arn
protocol = "lambda"
endpoint = module.lambda-createPages.function_arn
}
resource "aws_sns_topic" "concatPages" {
name = "concatPages"
}
resource "aws_sns_topic_subscription" "concatPages" {
topic_arn = aws_sns_topic.concatPages.arn
protocol = "lambda"
endpoint = module.lambda-concatPages.function_arn
}