Skip to content

DataDome/terraform-provider-datadome

Repository files navigation

DataDome Terraform Provider

This Terraform Provider aims at creating custom rules using the Management API.

Build the provider

Run the following command to build the provider

$ make build

Test a sample configuration manually

  1. Build the provider.

  2. Install the provider.

$ make install
  1. Navigate to the examples directory.
$ cd examples
  1. Inside main.tf, set your Management API Key that you can find in your dashboard. If you don't have one, please contact DataDome support to generate one.

  2. Run the following command to initialize the workspace and apply the sample configuration.

$ terraform init && terraform apply
  1. Terraform will ask you if you want to perform these actions: enter yes.

  2. Congrats! You created a new custom rule that you can see in your dashboard.

Make a release

  1. On the main branch, create a tag with the version number, starting with v.

  2. Push it.

  3. GHA will release the provider on the Terraform registry.