Added proxy and ZFS drives.
This commit is contained in:
@@ -4,6 +4,9 @@ resource "aws_instance" "nodes" {
|
||||
# TODO Make this a variable.
|
||||
associate_public_ip_address = true
|
||||
subnet_id = element(var.subnet-ids, count.index % length(var.subnet-ids))
|
||||
# Set a private IP if var.private-ips is not empty, otherwise let AWS assign
|
||||
# the IP.
|
||||
private_ip = length(var.private-ips) == 0 ? null : element(var.private-ips, count.index)
|
||||
vpc_security_group_ids = var.security-group-ids
|
||||
user_data = element(var.user-datas.*.rendered, count.index)
|
||||
count = var.num-nodes
|
||||
|
||||
@@ -21,6 +21,12 @@ variable "num-nodes" {
|
||||
type = number
|
||||
}
|
||||
|
||||
variable "private-ips" {
|
||||
default = []
|
||||
description = "A list of private IP addresses to use for the nodes. If the list is empty then each node will get an IP assigned from AWS."
|
||||
type = list(string)
|
||||
}
|
||||
|
||||
variable "user-datas" {
|
||||
description = "A list of cloud-init configs that get applied to their corresponding node."
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user