-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathvariables.tf
92 lines (77 loc) · 1.71 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
variable "vpc_id" {
type = string
description = "VPC Id"
}
variable "subnet_id" {
type = string
description = "Subnet Id"
}
variable "instance_type" {
type = string
description = "AWS EC2 instance type"
default = "t2.micro"
}
variable "ami_id" {
type = string
description = "AWS AMI Id"
default = ""
}
variable "ami_filter_name" {
type = string
description = "AWS AMI Name filter value"
default = "ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-*"
}
variable "data_volumes" {
type = list(object({
ebs_volume_id = string
availability_zone = string
}))
description = "List of EBS volumes"
}
variable "mongodb_version" {
type = string
description = "MongoDB version"
default = "4.2"
}
variable "tags" {
type = map(string)
description = "Tags"
default = {}
}
variable "keypair_name" {
type = string
description = "Keypair name"
default = "mongo-publicKey"
}
variable "public_key" {
type = string
description = "Public key file path"
}
variable "private_key" {
type = string
description = "Private key file path"
}
variable "bastion_host" {
type = string
description = "Bastion host IP"
default = ""
}
variable "ami_owners" {
type = list(string)
description = "AMI owners filter"
default = ["self", "amazon", "aws-marketplace"]
}
variable "ssh_user" {
type = string
description = "SSH user name"
}
variable "replicaset_name" {
type = string
description = "MongoDB ReplicaSet Name"
default = ""
}
variable "replica_count" {
type = number
description = "Number of Replica nodes"
default = 1
}