serverless-nextjs/serverless-next.js

Add CloudFront Standard Logging Support

開放

#1,576 建立於 2021年8月23日

 (2 則留言) (3 個反應) (0 位負責人)TypeScript (447 個分叉)batch import
enhancementgood first issue

倉庫指標

星標
 (3,998 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Is your feature request related to a problem? Please describe. To aid with troubleshooting and auditing I'd like the ability to be able to enable and configure CloudFront Standard Logging from within the serverless.yml configuration file.

Describe the solution you'd like The following attributes to be supported under the CloudFront

logging:
  bucket: 'myawslogbucket.s3.amazonaws.com.'
  includeCookies: false
  prefix: 'myfolder/'

For example

WebApp:
  component: '@sls-next/serverless-component@latest'
  inputs:
    cloudfront:
      logging:
        bucket: 'myawslogbucket.s3.amazonaws.com.'
        includeCookies: false
        prefix: 'myfolder/'

These attributes should as per the CloudFormation documentation here: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-logging.html

Describe alternatives you've considered None

貢獻者指南