From 0a6a6e40c42c816dbfd967c85ab4240bbc3494f4 Mon Sep 17 00:00:00 2001 From: Necip Allef Date: Fri, 20 Oct 2023 18:02:29 +0300 Subject: [PATCH] refactor: example tf more explicit behavior --- assets/example.tf | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/assets/example.tf b/assets/example.tf index 7e46d92..3bb3556 100644 --- a/assets/example.tf +++ b/assets/example.tf @@ -3,6 +3,7 @@ resource "random_string" "fpjs_integration_path" { special = false lower = true upper = false + numeric = true } resource "random_string" "fpjs_agent_path" { @@ -10,6 +11,7 @@ resource "random_string" "fpjs_agent_path" { special = false lower = true upper = false + numeric = true } resource "random_string" "fpjs_result_path" { @@ -17,6 +19,7 @@ resource "random_string" "fpjs_result_path" { special = false lower = true upper = false + numeric = true } variable "fpjs_integration_path" { @@ -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" {