2021-09-25 16:59:23 +01:00
|
|
|
module "decker_firewall" {
|
|
|
|
source = "./vultr_firewall/"
|
|
|
|
|
|
|
|
description = "decker"
|
|
|
|
ports = [
|
|
|
|
"80/tcp",
|
|
|
|
"443/tcp",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
resource "vultr_instance" "decker" {
|
|
|
|
plan = "vc2-1c-1gb"
|
2021-11-06 16:45:09 +00:00
|
|
|
region = "cdg"
|
2021-09-25 16:59:23 +01:00
|
|
|
hostname = "decker"
|
|
|
|
firewall_group_id = module.decker_firewall.firewall_group.id
|
|
|
|
}
|
2022-01-08 22:12:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Linode
|
|
|
|
|
|
|
|
resource "linode_instance" "decker" {
|
|
|
|
label = "decker"
|
|
|
|
image = "linode/arch"
|
|
|
|
region = "eu-central"
|
|
|
|
type = "g6-nanode-1"
|
|
|
|
private_ip = true
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "linode_firewall" "decker" {
|
|
|
|
label = "decker"
|
|
|
|
linodes = [linode_instance.decker.id]
|
|
|
|
outbound_policy = "ACCEPT"
|
|
|
|
inbound_policy = "DROP"
|
|
|
|
|
|
|
|
inbound {
|
|
|
|
label = "allow-ping"
|
|
|
|
action = "ACCEPT"
|
|
|
|
protocol = "ICMP"
|
|
|
|
ipv4 = ["0.0.0.0/0"]
|
|
|
|
ipv6 = ["::/0"]
|
|
|
|
}
|
|
|
|
}
|