Skip to content

Commit

Permalink
Restructure
Browse files Browse the repository at this point in the history
  • Loading branch information
caseylang committed Oct 15, 2019
1 parent c53107e commit 7a30c27
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
12 changes: 1 addition & 11 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
variable "string_length" {
type = number
description = "The length of the random string"
default = 8
}

resource "random_string" "id" {
keepers = {
uuid = uuid()
}

length = var.string_length
}

output "random_string" {
value = random_string.id.result
}
}
3 changes: 3 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
output "random_string" {
value = "Application config output: ${random_string.id.result}"
}
5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
variable "string_length" {
type = number
description = "The length of the random string"
default = 8
}

0 comments on commit 7a30c27

Please sign in to comment.