> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pelanor.io/llms.txt
> Use this file to discover all available pages before exploring further.

# AWS CloudFront

> Undestand how to install the extended AWS CloudFront integration, allowing precise object-level cost allocation for CF requests and their underlying S3 buckets.

Pelanor provides a dedicated CloudFront integration that enables precise object-level cost allocation for CloudFront requests and their underlying S3 buckets. The integration relies on CloudFront logs.

<Warning>
  Additional charges may apply for CloudFront log access.
</Warning>

***

## Installation Steps

Follow these steps **for each CloudFront distribution** you want to monitor:

<Steps>
  <Step title="Open the CloudFront Console">
    Open **CloudFront** in the AWS Management Console.
  </Step>

  <Step title="Select your distribution">
    Choose the distribution you want to configure.
  </Step>

  <Step title="Enable logging">
    Go to the **Logging** tab and click **Add → Amazon S3**.

    <Note>
      If this option is disabled, CloudFront logs are already being exported to an S3 bucket.\
      Contact Pelanor Support for alternative setup options.
    </Note>
  </Step>

  <Step title="Choose the destination bucket">
    Select your **Pelanor artifact bucket** as the destination.

    * Bucket name format: `pelanor-external-{uuid}`
    * If you don’t have one, update your AWS integration or contact Pelanor
  </Step>

  <Step title="Set partitioning path">
    Expand **Additional settings** and set the partitioning path to:\
    `cloudfront-logs/{DistributionId}/{yyyy}/{MM}/{dd}/`
  </Step>

  <Step title="Set output format">
    For **Output format**, select **Parquet**.
  </Step>

  <Step title="Save configuration">
    Click **Submit** to save your changes.
  </Step>
</Steps>
