mirror of https://github.com/status-im/consul.git
AMI changes to reflect latest HVM and instance type changes to t2.micro
This commit is contained in:
parent
ae974bc824
commit
0b681edb6c
|
@ -1,6 +1,6 @@
|
|||
resource "aws_instance" "server" {
|
||||
ami = "${lookup(var.ami, concat(var.region, "-", var.platform))}"
|
||||
instance_type = "${lookup(var.instance_type, var.platform)}"
|
||||
instance_type = "${var.instance_type}"
|
||||
key_name = "${var.key_name}"
|
||||
count = "${var.servers}"
|
||||
security_groups = ["${aws_security_group.consul.name}"]
|
||||
|
|
|
@ -11,9 +11,10 @@ variable "user" {
|
|||
}
|
||||
|
||||
variable "ami" {
|
||||
description = "AWS AMI Id, if you change, make sure it is compatible with insatnce type, not all AMIs allow all insatnce types "
|
||||
default = {
|
||||
us-east-1-ubuntu = "ami-3acc7a52"
|
||||
us-west-2-ubuntu = "ami-37501207"
|
||||
us-east-1-ubuntu = "ami-83c525e8"
|
||||
us-west-2-ubuntu = "ami-57e8d767"
|
||||
us-east-1-rhel6 = "ami-b0fed2d8"
|
||||
us-west-2-rhel6 = "ami-2faa861f"
|
||||
}
|
||||
|
@ -38,10 +39,8 @@ variable "servers" {
|
|||
}
|
||||
|
||||
variable "instance_type" {
|
||||
default = {
|
||||
ubuntu = "m1.small"
|
||||
rhel6 = "m3.medium"
|
||||
}
|
||||
default = "t2.micro"
|
||||
description = "AWS Instance type, if you change, make sure it is compatible with AMI, not all AMIs allow all insatnce types "
|
||||
}
|
||||
|
||||
variable "tagName" {
|
||||
|
|
Loading…
Reference in New Issue