-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
65 lines (55 loc) · 1.34 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
variable "instance_count" {
description = "Number of instances to launch"
type = number
default = 1
}
variable "instance_type" {
description = "EC2 instance type"
type = string
default = "t2.micro"
}
variable "ami" {
description = "ID of AMI to use for the instance"
type = string
default = ""
}
variable "subnet_id" {
description = "The VPC Subnet ID to launch in"
type = string
default = ""
}
variable "vpc_security_group_ids" {
description = "A list of security group IDs to associate with"
type = list(string)
default = null
}
variable "key_name" {
description = "The key name to use for the instance"
type = string
default = ""
}
variable "associate_public_ip_address" {
description = "If true, the EC2 instance will have associated public IP address"
type = bool
default = null
}
variable "tags" {
description = "A mapping of tags to assign to the resource"
type = map(string)
default = {}
}
variable "platform" {
description = "A base image for EC2 mongo instance"
type = string
default="ubuntu-18.04"
}
variable "mongodb_version" {
description = "Mongo version for base image"
type = string
default = "4.2"
}
variable "ami_version" {
description = "version of ami image"
type = string
default = "1.0"
}