Skip to content

Commit ad71c9e

Browse files
refactor: example naming and variables
1 parent 69ac57e commit ad71c9e

File tree

6 files changed

+7
-10
lines changed

6 files changed

+7
-10
lines changed

examples/main/README.md renamed to examples/minimal/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Main example for Fingerprint Fastly VCL Proxy Integration
1+
## Minimal example for Fingerprint Fastly VCL Proxy Integration
22

33
This project is an example of how to create a Fastly VCL service for the [Fingerprint Fastly VCL proxy integration Terraform module](https://github.com/fingerprintjs/terraform-fastly-fingerprint-vcl-proxy-integration).
44
Learn more in the [Fastly VCL Proxy Terraform installation guide](https://dev.fingerprint.com/docs/deploy-fastly-vcl-using-terraform).
@@ -7,12 +7,12 @@ Learn more in the [Fastly VCL Proxy Terraform installation guide](https://dev.fi
77

88
To quickly run the example for testing purposes, you can:
99

10-
1. Copy the [terraform.tfvars.example](./terraform.tfvars.example) file into a new `terraform.tfvars` file and replace the values with your own. The variables are defined and described in the [variables.tf](./variables.tf) file.
10+
1. Copy the [terraform.tfvars.example](./terraform.tfvars.example) file into a new `terraform.tfvars` file and replace the values with your own. The variables are defined and described in the [variables.tf](./variables.tf) file
1111
2. Copy your Fastly API token
12-
3. Run `terraform init`.
13-
4. Run `terraform apply -target=module.fingerprint_fastly_vcl_integration.module.compute_asset`
14-
5. Run `terraform plan`.
15-
6. Run `terraform apply`.
12+
3. Run `terraform init`
13+
4. Run `terraform apply -target=module.fingerprint_fastly_vcl_integration.module.vcl_asset`
14+
5. Run `terraform plan`
15+
6. Run `terraform apply`
1616

1717
### Using in production
1818

File renamed without changes.
File renamed without changes.

examples/main/variables.tf renamed to examples/minimal/variables.tf

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
variable "agent_script_download_path" {
22
description = "The Fingerprint agent download will be proxied through this path"
33
type = string
4-
default = "agent"
54
}
65

76
variable "get_result_path" {
87
description = "The Fingerprint agent download will be proxied through this path"
98
type = string
10-
default = "result"
119
}
1210

1311
variable "integration_path" {
1412
description = "The Fingerprint integration will be proxied through this path prefix"
1513
type = string
16-
default = "integration"
1714
}
1815

1916
variable "integration_domain" {

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ variable "integration_name" {
8686
default = "fingerprint-fastly-vcl-proxy-integration"
8787
nullable = false
8888
validation {
89-
condition = can(regex("^([a-zA-Z0-9\\_])+$", var.integration_name))
89+
condition = can(regex("^([a-zA-Z0-9\\_\\-])+$", var.integration_name))
9090
error_message = "value should only consist of alphanumeric values and underscores"
9191
}
9292
}

0 commit comments

Comments
 (0)