Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

Add CloudFront Standard Logging Support #1576

@adamstirk-ct

Description

@adamstirk-ct

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions