|
@@ -141,6 +141,14 @@ resource "aws_lambda_permission" "allow_cloudwatch_to_call_portal_lambda_hourly"
|
|
|
source_arn = aws_cloudwatch_event_rule.portal_event_hourly_rule.arn
|
|
|
}
|
|
|
|
|
|
+resource "aws_lambda_permission" "allow_cloudwatch_to_call_portal_lambda_four_hourly" {
|
|
|
+ statement_id = "AllowExecutionFromCloudWatchFourHourly"
|
|
|
+ action = "lambda:InvokeFunction"
|
|
|
+ function_name = aws_lambda_function.portal_data_sync.function_name
|
|
|
+ principal = "events.amazonaws.com"
|
|
|
+ source_arn = aws_cloudwatch_event_rule.portal_event_four_hourly_rule.arn
|
|
|
+}
|
|
|
+
|
|
|
resource "aws_lambda_permission" "allow_cloudwatch_to_call_portal_lambda_daily" {
|
|
|
statement_id = "AllowExecutionFromCloudWatchDaily"
|
|
|
action = "lambda:InvokeFunction"
|