Add hcloud provider configuration and firewall resource
This commit is contained in:
22
terraform/prod__firewall.tf
Normal file
22
terraform/prod__firewall.tf
Normal file
@@ -0,0 +1,22 @@
|
||||
resource "hcloud_firewall" "production_fw" {
|
||||
name = "my-firewall"
|
||||
rule {
|
||||
direction = "in"
|
||||
protocol = "icmp"
|
||||
source_ips = [
|
||||
"0.0.0.0/0",
|
||||
"::/0"
|
||||
]
|
||||
}
|
||||
|
||||
rule {
|
||||
direction = "in"
|
||||
protocol = "tcp"
|
||||
port = "80-85"
|
||||
source_ips = [
|
||||
"0.0.0.0/0",
|
||||
"::/0"
|
||||
]
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user