From 6feba726a91e8aa129b461a2c63e525e59b89999 Mon Sep 17 00:00:00 2001 From: Marcin Maciaszczyk Date: Tue, 23 Apr 2024 09:22:02 +0200 Subject: [PATCH] randomize example stack names --- example/stack/main.tf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/example/stack/main.tf b/example/stack/main.tf index 56ff735..2467c44 100644 --- a/example/stack/main.tf +++ b/example/stack/main.tf @@ -19,8 +19,14 @@ data "plural_git_repository" "repository" { url = "https://github.com/zreigz/tf-hello.git" } +resource "random_string" "random" { + length = 5 + upper = false + special = false +} + resource "plural_infrastructure_stack" "stack" { - name = "tf-stack-13" + name = "stack-tf-${random_string.random.result}" type = "TERRAFORM" approval = true cluster_id = data.plural_cluster.cluster.id