[英]Serverless framework for APIGateway deployment with HTTP endpoint invocation?
我正在尝试使用具有 http 端点调用的无服务器框架来实现 APIGateway 部署。
如何做到这一点?
谢谢
最后,我得到了解决方案。
functions:
TestAPI:
handler: handler.hello
events:
- http:
path: /test
method: get
authorizer: aws_iam
integration: http
cors: false
request:
uri: 'http://karthibalu.simplesite.com'
passThrough: NEVER
template:
application/json: '{}'
parameters:
headers:
X-Request-Id: false
response:
statusCodes:
200:
pattern: ''
headers:
Strict-Transport-Security: "'max-age=31536000'"
500:
pattern: '500'
headers:
Strict-Transport-Security: "'max-age=31536000'"
Access-Control-Allow-Origin: "'Original Url'"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.