Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/datadome/terraform-provider-datadome
DataDome Terraform Provider
https://github.com/datadome/terraform-provider-datadome
infrastructure provider terraform
Last synced: 5 days ago
JSON representation
DataDome Terraform Provider
- Host: GitHub
- URL: https://github.com/datadome/terraform-provider-datadome
- Owner: DataDome
- Created: 2021-03-16T15:41:18.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-08-02T12:22:29.000Z (4 months ago)
- Last Synced: 2024-08-03T12:57:25.596Z (4 months ago)
- Topics: infrastructure, provider, terraform
- Language: Go
- Homepage:
- Size: 54.7 KB
- Stars: 6
- Watchers: 9
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: .github/README.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# DataDome Terraform Provider
This Terraform Provider aims at creating custom rules using the [Management API](https://docs.datadome.co/reference/get_1-1-protection-custom-rules).
## Build the provider
Run the following command to build the provider
```shell
$ make build
```## Test a sample configuration manually
1. Build the provider.
2. Install the provider.
```shell
$ make install
```3. Navigate to the `examples` directory.
```shell
$ cd examples
```4. Inside `main.tf`, set your Management API Key that you can find in [your dashboard](https://app.datadome.co/dashboard/management/integrations). If you don't have one, please contact DataDome support to generate one.
5. Run the following command to initialize the workspace and apply the sample configuration.
```shell
$ terraform init && terraform apply
```6. Terraform will ask you if you want to perform these actions: enter yes.
7. 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](https://registry.terraform.io/providers/DataDome/datadome/latest).