Skip to content

axiomhq/terraform-provider-axiom

Folders and files

NameName
Last commit message
Last commit date
Apr 25, 2024
Mar 7, 2025
Sep 18, 2024
Mar 5, 2025
Feb 23, 2024
Feb 23, 2024
Mar 15, 2024
Mar 15, 2024
Mar 5, 2025
Apr 26, 2024
Feb 25, 2025
Feb 25, 2025
Feb 13, 2024
Mar 15, 2024

Repository files navigation

Axiom Terraform Provider

A Terraform provider that allows you to manage resources in Axiom.

Axiom lets you make the most of your event data without compromises: all your data, all the time, for all possible needs. Say goodbye to data sampling, waiting times, and hefty fees.

📖 For more information, see the documentation.

🔧 To see the provider in action, check out the example.

❓ Issues or feedback? Contact us or join the Axiom Discord community.

Prerequisites

Install the provider

To install the Axiom Terraform Provider from the Terraform Registry, follow these steps:

  1. Add the following code to your Terraform configuration file. Replace API_TOKEN with the Axiom API token you have generated. For added security, store the API token in an environment variable.

    terraform {
      required_providers {
        axiom = {
          source  = "axiomhq/axiom"
        }
      }
    }
    
    provider "axiom" {
      api_token = "API_TOKEN"
    }
  2. In your terminal, go to the folder of your main Terraform configuration file, and then run the command terraform init.

Create a dataset

To create a dataset in Axiom using the provider, add the following code to your Terraform configuration file:

resource "axiom_dataset" "test_dataset" {
  name = "test_dataset"
  description = "This is a test dataset created by Terraform."
}

Access existing dataset

To access an existing dataset in Axiom using the provider, follow these steps:

  1. Determine the ID of the Axiom dataset using the getDatasets query of the Axiom API.
  2. Add the following code to your Terraform configuration file. Replace DATASET_ID with the ID of the Axiom dataset.
data "axiom_dataset" "test_dataset" {
  id = "DATASET_ID"
}

License

For more information on licensing, see LICENSE.