aws / aws-cdk

The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
https://aws.amazon.com/cdk
Apache License 2.0
11.71k stars 3.93k forks source link

(aws_cloudfront): (add support for cloudwatch logs access logs) #32279

Open aaroncowie opened 3 days ago

aaroncowie commented 3 days ago

Describe the feature

The cloudfront docs and the aws console refer to the current bucket based access logs as "legacy" and refer to "standard logging (v2)" instead.

I am specifically interested in the cloudwatch logs option for standard logging v2.

https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/standard-logging.html

Use Case

Used to investigate lambda@edge integration issues.

Proposed Solution

No response

Other Information

No response

Acknowledgements

CDK version used

2.170.0

Environment details (OS name and version, etc.)

MacOS Sonoma

khushail commented 3 days ago

Hi @aaroncowie , your request seems to be related to AWS documentation and for any documentation changes/suggestions, there is Feedback button on the top right corner where you can submit feedback what you want to see. This repository is specific to the CDK related issues. I am not sure how your request is related to CDK. Could you please verify and state your usecase. Thanks

aaroncowie commented 3 days ago

My apologies, I was simply pointing out that cdk currently produces a legacy cloudfront configuration when the logBucket property is passed to the Distribution construct and does not provide a way to output the new (v2) access logging config.

The relevant sections of the cdk docs make no mention of v2 https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudfront-readme.html#logging

The reason why I am interested in v2 is to make use of cloudwatch logs based logging instead of s3 based.