eventbridge issues.

This commit is contained in:
Charles E. Gormley
2024-09-10 22:56:09 -04:00
parent 76d6130169
commit 7a864d1f3c
3 changed files with 11 additions and 10 deletions

View File

@@ -5,11 +5,13 @@ Parameters:
Resources:
EventBridgeSchedule:
Type: AWS::Events::Rule
Type: AWS::Scheduler::Schedule
Properties:
Name: rss-feed-processor-schedule
Description: Runs the RSS Feed Processor Lambda function every hour
ScheduleExpression: rate(1 hour) # TODO: Turn this into a variable.
Targets:
- Arn: !Ref LambdaFunctionArn
Id: rss-feed-processor-lambda
ScheduleExpression: rate(10 minutes)
FlexibleTimeWindow:
Mode: FLEXIBLE
MaximumWindowInMinutes: 1
Target:
Arn: !Ref LambdaFunctionArn

View File

@@ -179,7 +179,7 @@ def deploy_infrastructure():
]
)
deploy_cloudformation('eventbridge.yaml', 'EventBridgeSchedule',
deploy_cloudformation('eventbridge.yaml', 'Schedule',
parameters=[
{
'ParameterKey': 'LambdaFunctionArn',

View File

@@ -1,15 +1,14 @@
# TODO Before Launch 🚀
* Delete KMS KEY test.
* Delete KMS KEY test.
* Fix eventbridge issues.
* Create role for eventbridge scheduler
* Fix lambda error with pacakges.
* Test from 3rd party aws account.
# Misc TODO:
* More RSS Feed Module - Easy
* Add in console setup python script for new project into launch.py
# Next Modules
* Vector Database Storage Solution w/ Pinecone.
* Gen AI Summarization Module.