Merge pull request #964 from sathiyas/fix-terraform-aws-variables
Fix terraform aws variables
This commit is contained in:
commit
782d36fe64
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
}
|
Loading…
Reference in a new issue