From d4ece741e027b62d8ea5e911ae413b830adc5856 Mon Sep 17 00:00:00 2001 From: shockrah Date: Wed, 21 May 2025 21:35:20 -0700 Subject: [PATCH] tarpit server that i'll use for the lulz --- infra/static-vultr/tarpit.tf | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 infra/static-vultr/tarpit.tf diff --git a/infra/static-vultr/tarpit.tf b/infra/static-vultr/tarpit.tf new file mode 100644 index 0000000..62b6afb --- /dev/null +++ b/infra/static-vultr/tarpit.tf @@ -0,0 +1,28 @@ +resource tls_private_key tarpit { + algorithm = "RSA" + rsa_bits = 4096 +} + +resource vultr_ssh_key tarpit { + name = "tarpit_ssh_key" + ssh_key = chomp(tls_private_key.tarpit.public_key_openssh) +} + +resource vultr_instance tarpit { + # Core configuration + plan = var.host.plan + region = var.host.region + os_id = var.host.os + enable_ipv6 = true + + + ssh_key_ids = [ vultr_ssh_key.host.id ] + firewall_group_id = vultr_firewall_group.host.id + label = "Websites" +} + + +output tarpit_ssh_key { + sensitive = true + value = tls_private_key.host.private_key_pem +} \ No newline at end of file