-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathvariables.tf
55 lines (44 loc) · 1.14 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
variable "instance_type" {
description = "aws instance type and class"
type = string
}
variable "allowed_ranges" {
description = "Allowed ranges that can access the cluster"
type = list(any)
default = ["0.0.0.0/0"]
}
variable "ssh-inbound-range" {
description = "CIDRs of address that are allowed to ssh in."
type = list(any)
}
variable "subnet_ids" {
description = "List of subnet Ids"
type = list(any)
}
variable "template-file" {
type = string
default = "cassandra.tmpl"
}
variable "config-file" {
type = string
default = "/etc/dse/cassandra/cassandra.yaml"
}
variable "ami" {
description = "Contains information to select desired AWS AMI"
}
variable "vpc_id" {
description = "The id for the vpc"
type = string
validation {
condition = length(var.vpc_id) >= 12 && substr(var.vpc_id, 0, 4) == "vpc-"
error_message = "The VPC ids need to start with vpc- and is at least 12 characters."
}
}
variable "private_ips" {
type = list(any)
description = "List of ips for the cassandra nodes"
}
variable "iam_instance_profile" {
type = string
default = ""
}