Last active
April 5, 2016 13:41
-
-
Save justincampbell/1078310df0df3f1247a2d08b22f41613 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ terraform apply | |
template_file.uuid: Refreshing state... (ID: 4638d183bea346640c747b10a280cea96a298a7e293aa46212772557d97877ab) | |
Apply complete! Resources: 0 added, 0 changed, 0 destroyed. | |
Outputs: | |
0 = d340778e | |
1 = 9fea | |
uuid = d340778e-9fea-ede5-c700-6713d8942813 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "template_file" "uuid" { | |
template = "${uuid()}" | |
lifecycle { | |
ignore_changes = ["template"] | |
} | |
} | |
output "0" { | |
value = "${element(split("-", template_file.uuid.rendered), 0)}" | |
} | |
output "1" { | |
value = "${element(split("-", template_file.uuid.rendered), 1)}" | |
} | |
output "uuid" { | |
value = "${template_file.uuid.rendered}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment