feat: restructure firewall module with provider specifications and module configuration
Some checks failed
Terraform Plan / plan (push) Failing after 0s

This commit is contained in:
2025-12-23 22:37:00 +01:00
parent f4edbe57d3
commit 108b6d1806
4 changed files with 17 additions and 3 deletions

View File

@@ -0,0 +1 @@
{"Modules":[{"Key":"","Source":"","Dir":"."},{"Key":"prod-firewall","Source":"./modules/firewall","Dir":"modules/firewall"}]}

3
terraform/main.tf Normal file
View File

@@ -0,0 +1,3 @@
module "prod-firewall" {
source = "./modules/firewall"
}

View File

@@ -1,3 +1,16 @@
terraform {
required_providers {
hcloud = {
source = "hetznercloud/hcloud"
version = "1.57.0"
}
netbox = {
source = "e-breuninger/netbox"
version = "5.0.0"
}
}
}
resource "hcloud_firewall" "prod-fw" {
name = "prod-fw"
rule {