forked from aehrc/terraform-aws-serverless-beacon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lambda.tf
77 lines (70 loc) · 2.31 KB
/
lambda.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
#
# summariseDataset Lambda Function
#
resource "aws_lambda_permission" "SNSSummariseDataset" {
statement_id = "AllowSNSSummariseDatasetInvoke"
action = "lambda:InvokeFunction"
function_name = module.lambda-summariseDataset.lambda_function_arn
principal = "sns.amazonaws.com"
source_arn = aws_sns_topic.summariseDataset.arn
}
#
# summariseVcf Lambda Function
#
resource "aws_lambda_permission" "SNSSummariseVcf" {
statement_id = "AllowSNSSummariseVcfInvoke"
action = "lambda:InvokeFunction"
function_name = module.lambda-summariseVcf.lambda_function_arn
principal = "sns.amazonaws.com"
source_arn = aws_sns_topic.summariseVcf.arn
}
#
# summariseSlice Lambda Function
#
resource "aws_lambda_permission" "SNSSummariseSlice" {
statement_id = "AllowSNSSummariseSliceInvoke"
action = "lambda:InvokeFunction"
function_name = module.lambda-summariseSlice.lambda_function_arn
principal = "sns.amazonaws.com"
source_arn = aws_sns_topic.summariseSlice.arn
}
#
# duplicateVariantSearch Lambda Function
#
resource "aws_lambda_permission" "SNSduplicateVariantSearch" {
statement_id = "AllowSNSduplicateVariantSearchInvoke"
action = "lambda:InvokeFunction"
function_name = module.lambda-duplicateVariantSearch.lambda_function_arn
principal = "sns.amazonaws.com"
source_arn = aws_sns_topic.duplicateVariantSearch.arn
}
#
# splitQuery Lambda Function
#
resource "aws_lambda_permission" "SNSsplitQuery" {
statement_id = "AllowSNSsplitQueryInvoke"
action = "lambda:InvokeFunction"
function_name = module.lambda-splitQuery.lambda_function_arn
principal = "sns.amazonaws.com"
source_arn = aws_sns_topic.splitQuery.arn
}
#
# performQuery Lambda Function
#
resource "aws_lambda_permission" "SNSperformQuery" {
statement_id = "AllowSNSperformQueryInvoke"
action = "lambda:InvokeFunction"
function_name = module.lambda-performQuery.lambda_function_arn
principal = "sns.amazonaws.com"
source_arn = aws_sns_topic.performQuery.arn
}
#
# indexer Lambda Function
#
resource "aws_lambda_permission" "SNSindexer" {
statement_id = "AllowSNSindexerInvoke"
action = "lambda:InvokeFunction"
function_name = module.lambda-indexer.lambda_function_arn
principal = "sns.amazonaws.com"
source_arn = aws_sns_topic.indexer.arn
}