This Terraform Provider aims at creating custom rules using the Management API.
Run the following command to build the provider
$ make build
-
Build the provider.
-
Install the provider.
$ make install
- Navigate to the
examples
directory.
$ cd examples
-
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. -
Run the following command to initialize the workspace and apply the sample configuration.
$ terraform init && terraform apply
-
Terraform will ask you if you want to perform these actions: enter yes.
-
Congrats! You created a new custom rule that you can see in your dashboard.
-
On the main branch, create a tag with the version number, starting with
v
. -
Push it.
-
GHA will release the provider on the Terraform registry.