Skip to content

Instantly share code, notes, and snippets.

@jasonkeene
Last active August 29, 2015 14:25
Show Gist options
  • Save jasonkeene/94dd7d068b04780e1092 to your computer and use it in GitHub Desktop.
Save jasonkeene/94dd7d068b04780e1092 to your computer and use it in GitHub Desktop.
resource "remote_data" current_datetime {
count = "${var.size}"
taint = "is_end_of_the_world"
create = "date +%y%m%d%H%M"
shell = true
}
resource "openstack_compute_instance_v2" myinstance {
count = "${var.size}"
name = "myapp-${element(remote_data.current_datetime.*.rendered, count.index)}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment