Privision a decker on linode

This commit is contained in:
Jake Howard 2022-01-08 22:12:28 +00:00
parent 0a13f78d29
commit e50a1f9a72
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -15,3 +15,29 @@ resource "vultr_instance" "decker" {
hostname = "decker" hostname = "decker"
firewall_group_id = module.decker_firewall.firewall_group.id firewall_group_id = module.decker_firewall.firewall_group.id
} }
# 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"]
}
}