Scheduler with AWS Lambda API Proxy -
i using aws lambda serverless framework build scheduler application + api using .net core.
i have created 1 web api controller , method transaction process , returns result. when accessing method api end point working fine.
now want set scheduler same method execute every 5 hours.
have added following line in serverless.yml
file:
functions: mvc: handler: testapplication::testapplication.src.infrastructure.entrypoints.lambdamvcentrypoint::functionhandlerasync events: - http: path: "/{proxy+}" method: "any"
does have idea how set scheduler proxy api case?
you can in serverless.yml
adding schedule
in events.
documentation: https://serverless.com/framework/docs/providers/aws/events/schedule/
basically, serverless.yml
this...
functions: mvc: handler: testapplication::testapplication.src.infrastructure.entrypoints.lambdamvcentrypoint::functionhandlerasync events: - http: path: "/{proxy+}" method: "any" - schedule: rate: rate(5 hours) enabled: true
Comments
Post a Comment