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}"
|
key_file = "${var.key_path}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#Instance tags
|
||||||
|
tags {
|
||||||
|
Name = "${var.tagName}-${count.index}"
|
||||||
|
}
|
||||||
|
|
||||||
provisioner "file" {
|
provisioner "file" {
|
||||||
source = "${path.module}/scripts/upstart.conf"
|
source = "${path.module}/scripts/upstart.conf"
|
||||||
destination = "/tmp/upstart.conf"
|
destination = "/tmp/upstart.conf"
|
||||||
|
|
|
@ -27,3 +27,7 @@ variable "instance_type" {
|
||||||
default = "m1.small"
|
default = "m1.small"
|
||||||
description = "The instance type to launch."
|
description = "The instance type to launch."
|
||||||
}
|
}
|
||||||
|
variable "tagName" {
|
||||||
|
default = "consul"
|
||||||
|
description = "Name tag for the servers"
|
||||||
|
}
|
Loading…
Reference in New Issue