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