Recently Written · git

subplz-web

git clone https://github.com/equwal/subplz-web

Log | Files | Refs


infra/burst/state/variables.tf (1333 bytes)

1 variable "cloudflare_account_id" {
2   description = "The Cloudflare account that holds the bucket (R2, right-hand column)."
3   type        = string
4 
5   validation {
6     condition     = can(regex("^[0-9a-f]{32}$", var.cloudflare_account_id))
7     error_message = "cloudflare_account_id must be the 32-character account ID."
8   }
9 }
10 
11 variable "r2_permission_group_ids" {
12   description = "Ids of the R2 permission groups that read and write objects. Null: look them up by name."
13   type        = list(string)
14   default     = null
15 }
16 
17 variable "bucket_name" {
18   type    = string
19   default = "subplz-files"
20 }
21 
22 variable "bucket_location" {
23   description = "R2 location hint. wnam: western North America, near the web server."
24   type        = string
25   default     = "wnam"
26 }
27 
28 variable "web_server_ip" {
29   description = "Public IPv4 address of the web server. Burst workers open their SSH tunnel to it."
30   type        = string
31   default     = "198.44.53.27"
32 
33   validation {
34     condition     = can(cidrhost("${var.web_server_ip}/32", 0))
35     error_message = "web_server_ip must be one IPv4 address."
36   }
37 }
38 
39 variable "ssh_port" {
40   type    = number
41   default = 22
42 }
43 
44 variable "host_key_file" {
45   description = "The web server's SSH host key. Workers accept this key only."
46   type        = string
47   default     = "/etc/ssh/ssh_host_ed25519_key.pub"
48 }