tarpit server that i'll use for the lulz
This commit is contained in:
parent
311a592d6e
commit
d4ece741e0
28
infra/static-vultr/tarpit.tf
Normal file
28
infra/static-vultr/tarpit.tf
Normal file
@ -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
|
||||
}
|
Loading…
Reference in New Issue
Block a user