Skip to content

Commit

Permalink
Merge pull request #37 from dcos-terraform/volume_tags
Browse files Browse the repository at this point in the history
initial commit to update root volume tags
  • Loading branch information
Jan Ulferts authored Oct 18, 2019
2 parents e468923 + c0b77a2 commit ad6eacb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ resource "aws_instance" "instance" {
delete_on_termination = true
}

volume_tags = "${merge(var.tags, map("Name", format("root-volume-${var.hostname_format}", (count.index + 1), local.region, local.cluster_name),
"Cluster", var.cluster_name))}"

user_data = "${var.user_data}"
get_password_data = "${var.get_password_data}"

Expand Down

0 comments on commit ad6eacb

Please sign in to comment.