hello i have a serverless.yml for the lambda function. i want to output the endpoint of the lambda and export it. please any help and suggestion on this
it looks like this:
service: erwte-project-files
Create an optimized package for our functions
package:
individually: true
plugins:
- serverless-bundle # Package our functions with Webpack
- serverless-offline
- serverless-dotenv-plugin
- serverless-manifest-plugin
custom:
stage: ${env:stage}
manifest:
output: …/…/…/build-config/erwte-config.json
provider:
name: aws
runtime: nodejs10.x
stage: ${self:custom.stage}
region: ap-southeast-2
iamRoleStatements:
- Effect: Allow
Action:
- dynamodb:PutItem
- dynamodb:Scan
- dynamodb:GetItem
Resource:
# - ${output:appname:stagename:regionname:my-service.var-key}
- 'Fn::ImportValue': ${env:stage}:erwteProjectFilesTableArn
functions:
getSchedules:
handler: handler/getSchedules.handler
events:
- http:
method: GET
path: /schedules
createSchedules:
handler: handler/createSchedule.handler
events:
- http:
method: POST
path: /schedule