Im using Serverless Framework to deploy a Docker image running R to an AWS Lambda.
service: r-lambda
provider:
name: aws
region: eu-west-1
timeout: 60
environment:
stage: ${sls:stage}
R_AWS_REGION: ${aws:region}
ecr:
images:
r-lambda:
path: ./
functions:
r-lambda-hello:
image:
name: r-lambda
command:
- functions.hello
This works fine and I can log into AWS and invoke the lambda function. But I also want to invoke by doing a curl to it, so I added an “events” property to the functions section:
functions:
r-lambda-hello:
image:
name: r-lambda
command:
- functions.hello
events:
- http: GET r-lambda-hello
Howevr, when I deploy with serverkless, it does not output the API endpoint. And when I go to API Gateway in AWS, I dont see any APIs here. What am I doing wrong?