From 70829dc617323e664a190a76d6fc7835621ab0d1 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 23 Mar 2021 21:31:31 +0000 Subject: [PATCH] Provision `walker` server This will eventually replace `grimes` --- terraform/walker_vps.tf | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 terraform/walker_vps.tf diff --git a/terraform/walker_vps.tf b/terraform/walker_vps.tf new file mode 100644 index 0000000..cda6adc --- /dev/null +++ b/terraform/walker_vps.tf @@ -0,0 +1,36 @@ +resource "vultr_instance" "walker" { + plan = "vhf-1c-1gb" + region = "lhr" + hostname = "walker" + firewall_group_id = vultr_firewall_group.walker.id +} + +resource "vultr_firewall_group" "walker" { + description = "walker" +} + +resource "vultr_firewall_rule" "walker_ping" { + firewall_group_id = vultr_firewall_group.walker.id + protocol = "icmp" + ip_type = "v4" + subnet = "0.0.0.0" + subnet_size = 0 +} + +resource "vultr_firewall_rule" "walker_web" { + firewall_group_id = vultr_firewall_group.walker.id + protocol = "tcp" + port = 80 + ip_type = "v4" + subnet = "0.0.0.0" + subnet_size = 0 +} + +resource "vultr_firewall_rule" "walker_web_secure" { + firewall_group_id = vultr_firewall_group.walker.id + protocol = "tcp" + port = 443 + ip_type = "v4" + subnet = "0.0.0.0" + subnet_size = 0 +}