feat: restructure firewall module with provider specifications and module configuration
Some checks failed
Terraform Plan / plan (push) Failing after 0s
Some checks failed
Terraform Plan / plan (push) Failing after 0s
This commit is contained in:
1
terraform/.terraform/modules/modules.json
Normal file
1
terraform/.terraform/modules/modules.json
Normal file
@@ -0,0 +1 @@
|
||||
{"Modules":[{"Key":"","Source":"","Dir":"."},{"Key":"prod-firewall","Source":"./modules/firewall","Dir":"modules/firewall"}]}
|
||||
3
terraform/main.tf
Normal file
3
terraform/main.tf
Normal file
@@ -0,0 +1,3 @@
|
||||
module "prod-firewall" {
|
||||
source = "./modules/firewall"
|
||||
}
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user