-
Notifications
You must be signed in to change notification settings - Fork 5
/
lambda.tf
33 lines (30 loc) · 961 Bytes
/
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
#
# 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
}