The Axiom CloudFront Lambda is an open-source project and welcomes your contributions. For more information, see the GitHub repository.
Prerequisites
- Create an Axiom account.
- Create a dataset in Axiom where you send your data.
- Create an API token in Axiom with permissions to update the dataset you have created.
Setup
- Select one of the following:
- If you already have an S3 bucket for your CloudFront data, launch the base stack on AWS.
- If you don’t have an S3 bucket for your CloudFront data, launch the stack on AWS that creates an S3 bucket for you.
- Add the name of the Axiom dataset where you want to send data.
- Enter the Axiom API token you have previously created.
Configuration
To configure your CloudFront distribution:- In AWS, select your origin domain.
- In Origin access, select Legacy access identities, and then select your origin access identity in the list.
- In Bucket policy, select Yes, update the bucket policy.
- In Standard logging, select On. This means that your data is delivered to your S3 bucket.
- Click Create Distribution, and then click Run your Distribution.