backend/services/api-messaging/serverless-messaging.yaml
2025-05-14 21:45:16 +02:00

41 lines
1.1 KiB
YAML

app: ${file(./package.json):name}
service: messaging
package:
individually: true
provider:
name: aws
stage: ${opt:stage,'dev'}
runtime: nodejs10.x
environment:
AWS_compute: ${self:service}-${self:provider.stage}-compute
iamRoleStatements:
- Effect: Allow
Action:
- lambda:InvokeFunction
Resource: '*'
plugins:
- serverless-webpack
- serverless-domain-manager
custom:
stage: ${opt:stage, self:provider.stage}
domains: ${file(./config/domains.yaml):domains}
customDomain: ${file(./config/domains.yaml):customDomain}
webpack:
webpackConfig: './lib/seed/webpack.config.js' # Name of webpack configuration file
includeModules:
forceExclude:
- aws-sdk
functions:
handler:
handler: handler.handler
timeout: 30
events:
- http:
path: /
method: post
cors: true
- http:
path: /
method: get
cors: true