-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
77 lines (63 loc) · 1.74 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
variable "key_name" {
description = "EC2 key name for provisioning and access"
default = "minecraft2"
}
variable "bucket_id" {
description = "Bucket name for persisting minecraft world"
default = "nick-minecraft-backup2"
}
// For tags, names
variable "name" {
description = "Name to use for servers, tags, etc (e.g. minecraft)"
default = "minecraft"
}
variable "tags" {
description = "Any extra tags to assign to objects"
default = {
Name = "Minecraft"
}
}
// Minecraft-specific defaults
variable "mc_port" {
description = "TCP port for minecraft"
default = "25565"
}
variable "mc_root" {
description = "Where to install minecraft on your instance"
default = "/home/minecraft"
}
variable "mc_version" {
description = "Which version of minecraft to install"
default = "1.15.2"
}
variable "mc_backup_freq" {
description = "How often (mins) to sync to S3"
default = "5"
}
// You'll want to tune these next two based on the instance type
variable "java_ms_mem" {
description = "Java initial and minimum heap size"
default = "2G"
}
variable "java_mx_mem" {
description = "Java maximum heap size"
default = "2G"
}
// Instance vars
variable "associate_public_ip_address" {
description = "By default, our server has a public IP"
default = true
}
variable "ami" {
description = "AMI to use for the instance - will default to latest Ubuntu"
default = ""
}
// https://aws.amazon.com/ec2/instance-types/
variable "instance_type" {
description = "EC2 instance type/size - the default is not part of free tier!"
default = "t2.medium"
}
variable "allowed_cidrs" {
description = "Allow these CIDR blocks to the server - default is the Universe"
default = "0.0.0.0/0"
}