-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from DataDome/change-owners-to-integrations
- Loading branch information
Showing
3 changed files
with
61 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# Default owners for all files | ||
* @DataDome/team-sre @gilleswalbrou | ||
* @datadome/integrations-server-side |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# DataDome Terraform Provider | ||
|
||
This Terraform Provider aims at creating custom rules using the [Management API](https://docs.datadome.co/reference/get_1-0-protection-custom-rules). | ||
|
||
## Build the provider | ||
|
||
Run the following command to build the provider | ||
|
||
```shell | ||
$ go build -o terraform-provider-datadome | ||
``` | ||
|
||
## Test a sample configuration manually | ||
|
||
1. Build the provider. | ||
|
||
2. Install it. | ||
|
||
```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. If you don't have one, you can generate it. | ||
|
||
|
||
5. Run the following command to initialize the workspace and apply the sample configuration. | ||
|
||
```shell | ||
$ terraform init && terraform apply | ||
``` | ||
|
||
If you have a mac M1, you may need to run these before: | ||
|
||
```shell | ||
$ brew uninstall terraform | ||
$ brew install tfenv | ||
$ TFENV_ARCH=amd64 tfenv install 1.3.3 | ||
$ tfenv use 1.3.3 | ||
``` | ||
|
||
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 | ||
|
||
//TODO: update the process after making the first release | ||
|
||
1. Create a tag with the version number, starting with `v`. | ||
|
||
2. Push it. | ||
|
||
3. GHA will release the provider on the Terraform registry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,3 @@ | ||
# DataDome Terraform Provider | ||
|
||
|
||
## Build provider | ||
|
||
Run the following command to build the provider | ||
|
||
```shell | ||
$ go build -o terraform-provider-datadome | ||
``` | ||
|
||
## Test sample configuration | ||
|
||
First, build and install the provider. | ||
|
||
```shell | ||
$ make install | ||
``` | ||
|
||
Then, navigate to the `examples` directory. | ||
|
||
```shell | ||
$ cd examples | ||
``` | ||
|
||
Run the following command to initialize the workspace and apply the sample configuration. | ||
|
||
```shell | ||
$ terraform init && terraform apply | ||
``` | ||
Provider: https://registry.terraform.io/providers/DataDome/datadome/ |