问题描述
我正在使用无服务器,通过CloudFront将功能部署到Lambda @ edge。这会在客户访问我们应用的每个区域中创建cloudwatch日志。
是否仍然有禁用日志生成的功能。我尝试覆盖iamRoleStatements以及disableLogs和日志的任意组合。
需要发生的是在.serverless / update 中生成的IamRoleLambdaExecution具有允许CreateLogStream和CreateLogGroup的语句。
生成CF模板后是否可以进行修复?
这是我的serverless.yml:
provider:
name: aws
logs:
httpApi: false
restApi:
accessLogging: false
frameworkLambda: false
functions:
redirect:
disableLogs: true
handler: Redirect.handler
events:
- cloudFront:
eventType: origin-request
origin: https://${self:custom.site}
- cloudFront:
eventType: origin-response
origin: https://${self:custom.site}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)