feat: Created post-install script

This commit is contained in:
2026-07-10 21:28:32 +01:00
parent 242e8aa359
commit d4167d5d60
10 changed files with 183 additions and 10 deletions
+11 -1
View File
@@ -34,7 +34,7 @@ variable "volume_size" {
}
variable "allowed_ssh_source_ips" {
description = "CIDRs allowed to reach port 22 on dev."
description = "CIDRs allowed to reach port 22 on dev. Set by the root module to the vpn server's public IP."
type = list(string)
}
@@ -42,3 +42,13 @@ variable "network_ip_range" {
description = "CIDR of the private network, allowed through the firewall for traffic from prod."
type = string
}
variable "bootstrap_script" {
description = "Rendered post-install script, uploaded and executed on the server immediately after creation."
type = string
}
variable "ssh_private_key_path" {
description = "Local path to the private key matching var.ssh_key_id, used to run the bootstrap script over SSH."
type = string
}