Skip to content

Commit

Permalink
randomize example stack names
Browse files Browse the repository at this point in the history
  • Loading branch information
maciaszczykm committed Apr 23, 2024
1 parent 806aad3 commit 6feba72
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion example/stack/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6feba72

Please sign in to comment.