Skip to content

Commit

Permalink
refactor: example tf more explicit behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
necipallef committed Oct 20, 2023
1 parent 6cd94e6 commit 0a6a6e4
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 0a6a6e4

Please sign in to comment.