Merge pull request #964 from sathiyas/fix-terraform-aws-variables

Fix terraform aws variables
This commit is contained in:
Paul Hinze 2015-05-26 10:00:17 -05:00
commit 782d36fe64
2 changed files with 9 additions and 0 deletions

View File

@ -10,6 +10,11 @@ resource "aws_instance" "server" {
key_file = "${var.key_path}"
}
#Instance tags
tags {
Name = "${var.tagName}-${count.index}"
}
provisioner "file" {
source = "${path.module}/scripts/upstart.conf"
destination = "/tmp/upstart.conf"

View File

@ -26,4 +26,8 @@ variable "servers" {
variable "instance_type" {
default = "m1.small"
description = "The instance type to launch."
}
variable "tagName" {
default = "consul"
description = "Name tag for the servers"
}