Skip to content

Instantly share code, notes, and snippets.

@justincampbell
Last active April 5, 2016 13:41
Show Gist options
  • Save justincampbell/1078310df0df3f1247a2d08b22f41613 to your computer and use it in GitHub Desktop.
Save justincampbell/1078310df0df3f1247a2d08b22f41613 to your computer and use it in GitHub Desktop.
$ 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
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