我正在尝试通过serverless.com部署AWS API
当我做:
sls --stage=dev --aws-profile=myprofile deploy --force
我收到以下警告:Configuration warning at 'functions.app.events[0]': unsupported function event
我的serverless.yml包含以下部分:functions:
app:
handler: src/index.handler
memorySize: 3008
events:
- httpApi:
method: '*'
path: '*'
authorizer:
name: serviceAuthorizer
scopes: # Optional
- user.id
- user.email
事件部分有什么问题?
最佳答案
我有类似的问题。问题在于缩进。尝试解决它:
- httpApi:
method: '*'
path: '*'
关于aws-api-gateway - 'functions.app.events[0]'上的无服务器配置警告: unsupported function event,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64074827/