Skip to content

Commit 1c71090

Browse files
authored
[v15] agent-pool-terraform: Pick random characters from a pool acceptable to Teleport backends (#42763)
* agent-pool-terraform: Pick random characters from a pool acceptable to Teleport backends * Also add version to provision token resource
1 parent 25ca2eb commit 1c71090

File tree

1 file changed

+5
-3
lines changed
  • examples/agent-pool-terraform/teleport

1 file changed

+5
-3
lines changed

examples/agent-pool-terraform/teleport/token.tf

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
resource "random_string" "token" {
2-
count = var.agent_count
3-
length = 32
2+
count = var.agent_count
3+
length = 32
4+
override_special = "-.+"
45
}
56

67
resource "teleport_provision_token" "agent" {
7-
count = var.agent_count
8+
count = var.agent_count
9+
version = "v2"
810
spec = {
911
roles = var.agent_roles
1012
}

0 commit comments

Comments
 (0)