|
1 | 1 | variable "integration_domain" { |
2 | 2 | type = string |
3 | | -} |
4 | | - |
5 | | -variable "main_host" { |
6 | | - type = string |
| 3 | + nullable = false |
7 | 4 | } |
8 | 5 |
|
9 | 6 | variable "integration_name" { |
10 | 7 | type = string |
11 | 8 | default = "fingerprint-fastly-compute-proxy-integration" |
| 9 | + nullable = false |
| 10 | + validation { |
| 11 | + condition = can(regex("^([a-zA-Z0-9\\-])+$", var.integration_name)) |
| 12 | + error_message = "value should only consist of alphanumeric values and dashes" |
| 13 | + } |
12 | 14 | } |
13 | 15 |
|
14 | 16 | variable "config_store_prefix" { |
15 | 17 | type = string |
16 | 18 | default = "Fingerprint_Compute_Config_Store_" |
| 19 | + nullable = false |
| 20 | + validation { |
| 21 | + condition = can(regex("^([a-zA-Z0-9\\_])+$", var.config_store_prefix)) |
| 22 | + error_message = "value should only consist of alphanumeric values and underscores" |
| 23 | + } |
17 | 24 | } |
18 | 25 |
|
19 | 26 | variable "secret_store_prefix" { |
20 | 27 | type = string |
21 | 28 | default = "Fingerprint_Compute_Secret_Store_" |
| 29 | + nullable = false |
| 30 | + validation { |
| 31 | + condition = can(regex("^([a-zA-Z0-9\\_])+$", var.secret_store_prefix)) |
| 32 | + error_message = "value should only consist of alphanumeric values and underscores" |
| 33 | + } |
22 | 34 | } |
23 | 35 |
|
24 | 36 | variable "fastly_api_key" { |
25 | 37 | type = string |
| 38 | + nullable = false |
26 | 39 | } |
27 | 40 |
|
28 | 41 | variable "agent_script_download_path" { |
29 | 42 | type = string |
30 | | - default = "agent" |
| 43 | + nullable = false |
| 44 | + validation { |
| 45 | + condition = can(regex("^([a-zA-Z0-9\\-])+$", var.agent_script_download_path)) |
| 46 | + error_message = "value should only consist of alphanumeric values and dashes" |
| 47 | + } |
31 | 48 | } |
32 | 49 |
|
33 | 50 | variable "get_result_path" { |
34 | 51 | type = string |
35 | | - default = "result" |
| 52 | + nullable = false |
| 53 | + validation { |
| 54 | + condition = can(regex("^([a-zA-Z0-9\\-])+$", var.get_result_path)) |
| 55 | + error_message = "value should only consist of alphanumeric values and dashes" |
| 56 | + } |
36 | 57 | } |
37 | 58 |
|
38 | | -variable "repository_organization_name" { |
| 59 | +variable "asset_repository_organization_name" { |
39 | 60 | type = string |
40 | 61 | default = "fingerprintjs" |
41 | 62 | } |
42 | 63 |
|
43 | | -variable "repository_name" { |
| 64 | +variable "asset_repository_name" { |
44 | 65 | type = string |
45 | 66 | default = "fingerprint-pro-fastly-compute-proxy-integration" |
46 | 67 | } |
47 | 68 |
|
48 | | -variable "asset_version_min" { |
| 69 | +variable "asset_version" { |
49 | 70 | type = string |
50 | 71 | default = "latest" |
51 | 72 | } |
|
0 commit comments