Skip to content

Commit f63d7f0

Browse files
authored
Merge pull request #4 from fingerprintjs/initial-release
feat: add variable manage_fastly_dictionary_items
2 parents 4774864 + e9bf2f7 commit f63d7f0

File tree

3 files changed

+23
-14
lines changed

3 files changed

+23
-14
lines changed

README.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -65,20 +65,21 @@ module "fingerprint_fastly_vcl_integration" {
6565

6666
You can see the full list of the Terraform module's variables below:
6767

68-
| Variable | Description | Required | Example |
69-
| ---------------------------- | --------------------------------------------------------- | -------- | ---------------------------------------------- |
70-
| `fastly_api_token` | Your Fastly API token | Required | `"ABC123...xyz"` |
71-
| `proxy_secret` | Your Fingerprint proxy secret | Required | `"9h7jk2s1"` |
72-
| `integration_path` | Path prefix for proxy requests | Required | `"kyfy7t0a"` |
73-
| `agent_script_download_path` | Path for serving the JavaScript agent | Required | `"cc7bu2o8"` |
74-
| `get_result_path` | Path for identification requests | Required | `"sy5k3279"` |
75-
| `integration_domain` | Domain used for the proxy integration | Required | `"metrics.yourwebsite.com"` |
76-
| `main_host` | Your origin server domain | Required | `"yourwebsite.com"` |
77-
| `dictionary_name` | Name of the Fastly Dictionary for config values | Optional | `"fingerprint_config"` |
78-
| `integration_name` | Name of the Fastly CDN service | Optional | `"fingerprint-fastly-vcl-proxy-integration"` |
79-
| `download_asset` | Whether to auto-download the latest VCL release | Optional | `true` |
80-
| `vcl_asset_name` | Custom VCL asset file if not downloading the official one | Optional | `"fingerprint-pro-fastly-vcl-integration.vcl"` |
81-
| `asset_version` | GitHub release version used for the VCL asset | Optional | `"latest"` |
68+
| Variable | Description | Required | Example |
69+
|----------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------|------------------------------------------------|
70+
| `fastly_api_token` | Your Fastly API token | Required | `"ABC123...xyz"` |
71+
| `proxy_secret` | Your Fingerprint proxy secret | Required | `"9h7jk2s1"` |
72+
| `integration_path` | Path prefix for proxy requests | Required | `"kyfy7t0a"` |
73+
| `agent_script_download_path` | Path for serving the JavaScript agent | Required | `"cc7bu2o8"` |
74+
| `get_result_path` | Path for identification requests | Required | `"sy5k3279"` |
75+
| `integration_domain` | Domain used for the proxy integration | Required | `"metrics.yourwebsite.com"` |
76+
| `main_host` | Your origin server domain | Required | `"yourwebsite.com"` |
77+
| `dictionary_name` | Name of the Fastly Dictionary for config values | Optional | `"fingerprint_config"` |
78+
| `integration_name` | Name of the Fastly CDN service | Optional | `"fingerprint-fastly-vcl-proxy-integration"` |
79+
| `download_asset` | Whether to auto-download the latest VCL release | Optional | `true` |
80+
| `vcl_asset_name` | Custom VCL asset file if not downloading the official one | Optional | `"fingerprint-pro-fastly-vcl-integration.vcl"` |
81+
| `asset_version` | GitHub release version used for the VCL asset | Optional | `"latest"` |
82+
| `manage_fastly_dictionary_items` | Manage Fastly Dictionary items via terraform, see [Fastly documentation](https://registry.terraform.io/providers/fastly/fastly/latest/docs/resources/service_dictionary_items#manage_items-1) | Optional | `false` |
8283

8384
## 2. Deploy your Terraform changes
8485

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ resource "fastly_service_vcl" "fingerprint_integration" {
6161
resource "fastly_service_dictionary_items" "fingerprint_integration_dictionary_items" {
6262
service_id = fastly_service_vcl.fingerprint_integration.id
6363
dictionary_id = local.selected_dictionary.dictionary_id
64+
manage_entries = var.manage_fastly_dictionary_items
6465
items = {
6566
PROXY_SECRET : var.proxy_secret,
6667
INTEGRATION_PATH : var.integration_path,

variables.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,13 @@ variable "dictionary_name" {
8181
}
8282
}
8383

84+
variable "manage_fastly_dictionary_items" {
85+
type = bool
86+
default = false
87+
nullable = false
88+
description = "Manage Fastly Dictionary items via terraform, see link: https://registry.terraform.io/providers/fastly/fastly/latest/docs/resources/service_dictionary_items#manage_items-1"
89+
}
90+
8491
variable "integration_name" {
8592
type = string
8693
default = "fingerprint-fastly-vcl-proxy-integration"

0 commit comments

Comments
 (0)