Skip to content

Commit

Permalink
Merge pull request #6 from fingerprintjs/refactor/terraform_example
Browse files Browse the repository at this point in the history
refactor: example tf more explicit behavior
  • Loading branch information
Orkuncakilkaya committed Oct 23, 2023
2 parents 6cd94e6 + 0a6a6e4 commit 4e0cec1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions assets/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,23 @@ resource "random_string" "fpjs_integration_path" {
special = false
lower = true
upper = false
numeric = true
}

resource "random_string" "fpjs_agent_path" {
length = 8
special = false
lower = true
upper = false
numeric = true
}

resource "random_string" "fpjs_result_path" {
length = 8
special = false
lower = true
upper = false
numeric = true
}

variable "fpjs_integration_path" {
Expand Down Expand Up @@ -52,9 +55,9 @@ variable "fpjs_proxy_secret" {
}

locals {
fpjs_integration_path = "${var.fpjs_integration_path != "" ? var.fpjs_integration_path : random_string.fpjs_integration_path.result}"
fpjs_agent_path = "${var.fpjs_agent_path != "" ? var.fpjs_agent_path : random_string.fpjs_agent_path.result}"
fpjs_result_path = "${var.fpjs_result_path != "" ? var.fpjs_result_path : random_string.fpjs_result_path.result}"
fpjs_integration_path = var.fpjs_integration_path != "" ? var.fpjs_integration_path : random_string.fpjs_integration_path.result
fpjs_agent_path = var.fpjs_agent_path != "" ? var.fpjs_agent_path : random_string.fpjs_agent_path.result
fpjs_result_path = var.fpjs_result_path != "" ? var.fpjs_result_path : random_string.fpjs_result_path.result
}

data "akamai_property_rules_template" "rules" {
Expand Down

0 comments on commit 4e0cec1

Please sign in to comment.