mirror of
https://github.com/status-im/consul.git
synced 2025-02-03 17:34:08 +00:00
Merge pull request #784 from byu/master
Add Terraform Variable for AWS instance type
This commit is contained in:
commit
e582024b92
@ -1,6 +1,6 @@
|
||||
resource "aws_instance" "server" {
|
||||
ami = "${lookup(var.ami, var.region)}"
|
||||
instance_type = "m1.small"
|
||||
instance_type = "${var.instance_type}"
|
||||
key_name = "${var.key_name}"
|
||||
count = "${var.servers}"
|
||||
security_groups = ["${aws_security_group.consul.name}"]
|
||||
|
@ -22,3 +22,8 @@ variable "servers" {
|
||||
default = "3"
|
||||
description = "The number of Consul servers to launch."
|
||||
}
|
||||
|
||||
variable "instance_type" {
|
||||
default = "m1.small"
|
||||
description = "The instance type to launch."
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user