app: ${file(./package.json):name} service: payments package: individually: true provider: name: aws stage: ${opt:stage,'dev'} runtime: nodejs12.x environment: AWS_Hooks: hooks-${self:provider.stage}-hookHandler iamRoleStatements: - Effect: Allow Action: - lambda:InvokeFunction Resource: '*' plugins: - serverless-webpack - serverless-domain-manager - serverless-offline custom: stage: ${opt:stage, self:provider.stage} domains: ${file(./config/domains.yaml):domains} customDomain: ${file(./config/domains.yaml):customDomain} serverless-offline: httpPort: 4002 lambdaPort: 4010 webpack: webpackConfig: './lib/seed/webpack.config.js' # Name of webpack configuration file includeModules: forceExclude: - aws-sdk - puppeteer functions: stripe-hooks: handler: handler.handler timeout: 300 events: - http: path: '/webhook' method: post cors: origin: '*' headers: - Content-Type - Authorization - stripe-signature