Skip to content

v2_logging example is brokenย #195

@FlorinAndrei

Description

@FlorinAndrei

The current example:

  v2_logging = {
    name            = "example-v2-logs"
    destination_arn = "${module.log_bucket.s3_bucket_arn}/cloudfront"
    output_format   = "parquet"

    s3_delivery_configuration = {
      enable_hive_compatible_path = true
      suffix_path                 = "{DistributionId}/{yyyy}/{MM}/{dd}/{HH}"
    }
  }

It's missing enable_v2_logging = true (default: false). Also, the destination is wrong. Check the source in main.tf, the example makes no sense. It should be:

  enable_v2_logging = true
  v2_logging = {
    name = "example-v2-logs"
    delivery_destination_configuration = {
      destination_resource_arn = "${module.log_bucket.s3_bucket_arn}/cloudfront"
    }
    output_format = "parquet"
    s3_delivery_configuration = {
      enable_hive_compatible_path = true
      suffix_path                 = "{DistributionId}/{yyyy}/{MM}/{dd}/{HH}"
    }
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions