Skip to content

Commit

Permalink
Add scheduled kick
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhpalp committed Apr 22, 2024
1 parent 2f9543d commit c96fdac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 54 deletions.
53 changes: 0 additions & 53 deletions lambda/README.md

This file was deleted.

7 changes: 6 additions & 1 deletion lambda/cache-invalidator/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,17 @@ Resources:
Properties:
Path: /wfnews-cache-invalidator
Method: get
ScheduleEvent:
Type: Schedule
Properties:
Schedule: rate(5 minute)
Input: '{"source": "scheduled"}'

Outputs:
# ServerlessRestApi is an implicit API created out of Events key under Serverless::Function
# Find out more about other implicit resources you can reference within SAM
# https://github.com/awslabs/serverless-application-model/blob/master/docs/internals/generated_resources.rst#api
HelloWorldApi:
WFNEWSCacheInvalidatorApi:
Description: "Perimeter Monitor function"
Value: !Sub "https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/wfnews-cache-invalidator/"
WFNEWSCacheInvalidatorFunction:
Expand Down

0 comments on commit c96fdac

Please sign in to comment.