-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
99 lines (83 loc) · 2.06 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
93
94
95
96
97
98
99
variable "aws_region" {
description = "AWS region"
type = string
default = "ap-east-1"
}
variable "vpc_cidr_block" {
description = "VPC CIDR block"
type = string
default = "10.0.0.0/24"
}
variable "subnet_cidr_block" {
description = "Subnet CIDR block"
type = string
default = "10.0.0.0/28"
}
variable "ami_filter" {
description = "AMI filter"
type = string
default = "ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-arm64-server-*"
}
variable "ami_owner" {
description = "AMI owner is Canonical"
default = "099720109477"
}
variable "server_instance_type" {
description = "Server instance type"
type = string
default = "t4g.nano"
}
variable "server_storage_size" {
description = "Server storage size"
type = number
default = 8
}
variable "server_username" {
description = "AMI user"
default = "ubuntu"
}
variable "server_hostname" {
description = "Server hostname"
type = string
default = "vpn"
}
variable "server_start_expression" {
description = "Server start schedule expression"
type = string
default = "cron(0 10 * * ? *)"
}
variable "server_stop_expression" {
description = "Server stop schedule expression"
type = string
default = "cron(0 1 * * ? *)"
}
variable "log_retention" {
description = "CloudWatch log retention"
type = number
default = 14
}
variable "tailscale_api_key" {
description = "Tailscale API access token"
type = string
sensitive = true
}
variable "tailscale_tailnet" {
description = "Tailscale tailnet name"
type = string
sensitive = true
}
variable "tailscale_tailnet_key_expiry" {
description = "Tailscale tailnet key expiry"
type = number
default = 2419200
}
variable "tailscale_package_url" {
description = "Tailscale package download URL"
type = string
default = "https://pkgs.tailscale.com/stable/ubuntu/jammy"
}
variable "timeout" {
description = "Provision timeout"
type = string
default = "30m"
}