Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: Add support for CloudFront Standard Logging#187

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
clark42 wants to merge2 commits intoterraform-aws-modules:master
base:master
Choose a base branch
Loading
fromKamorionLabs:feature/logging-v2

Conversation

@clark42
Copy link

Description

Add support for CloudFront Standard Logging using CloudWatch Log Delivery resources. This replaces the legacy logging_config and allows logging to S3, CloudWatch Logs, or Firehose as destinations.

Standard logging is automatically enabled when std_logging_destination or std_logging_destination_arn is provided (no separate enable flag needed).

New variables:

  • std_logging_region - Region for logging resources (default: us-east-1)
  • std_logging_source_name - Optional custom name for delivery source
  • std_logging_destination_arn - Use existing destination (skip creation)
  • std_logging_destination - Destination configuration (name, output_format, destination_arn)
  • std_logging_delivery - Delivery configuration (field_delimiter, record_fields, s3_delivery_configuration)

New outputs:

  • cloudfront_std_logging_source_arn
  • cloudfront_std_logging_source_name
  • cloudfront_std_logging_destination_arn
  • cloudfront_std_logging_delivery_id
  • cloudfront_std_logging_delivery_arn

Motivation and Context

AWS announced CloudFront Standard Logging in November 2024, providing significant improvements over legacy logging:

  • Support for multiple destinations: S3, CloudWatch Logs, Firehose
  • Multiple output formats: JSON, Parquet, Plain, W3C, Raw
  • Hive-compatible S3 paths for better integration with analytics tools
  • Customizable record fields
  • Ability to send logs to opt-in AWS regions

Related:

Breaking Changes

No breaking changes. This is an additive feature. Existing logging_config (legacy logging) continues to work unchanged.

How Has This Been Tested?

  • I have updated at least one of theexamples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the providedexamples/* projects
  • I have executedpre-commit run -a on my pull request

Add support for CloudFront Standard Logging using CloudWatch Log Delivery resources.This replaces the legacy logging_config and allows logging to S3, CloudWatch Logs,or Firehose as destinations.Standard logging is automatically enabled when std_logging_destination orstd_logging_destination_arn is provided (no separate enable flag needed).New variables:- std_logging_region: region for logging resources (default: us-east-1)- std_logging_source_name: optional custom name for delivery source- std_logging_destination_arn: use existing destination (skip creation)- std_logging_destination: destination configuration (name, output_format, destination_arn)- std_logging_delivery: delivery configuration (field_delimiter, record_fields, s3_delivery_configuration)New outputs:- cloudfront_std_logging_source_arn- cloudfront_std_logging_source_name- cloudfront_std_logging_destination_arn- cloudfront_std_logging_delivery_id- cloudfront_std_logging_delivery_arn
@clark42clark42 changed the titlefeat: add support for CloudFront Standard Loggingfeat: Add support for CloudFront Standard LoggingDec 8, 2025
…types- Remove dedicated tags from logging variables, use var.tags instead- Add delivery_destination_type parameter for X-Ray trace delivery support- Make destination_arn optional (not required for X-Ray)- Make delivery_destination_configuration a dynamic block
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@clark42

[8]ページ先頭

©2009-2025 Movatter.jp