Refactor firewall rules and add network resources for production environment

This commit is contained in:
2025-12-23 10:54:03 +01:00
parent 34dd484004
commit f850066aad
4 changed files with 230 additions and 11 deletions

View File

@@ -1,9 +1,136 @@
{
"version": 4,
"terraform_version": "1.14.3",
"serial": 3,
"serial": 10,
"lineage": "2f42bf18-041f-78d9-24cc-d9a193bc3daf",
"outputs": {},
"resources": [],
"resources": [
{
"mode": "managed",
"type": "hcloud_firewall",
"name": "production_fw",
"provider": "provider[\"registry.terraform.io/hetznercloud/hcloud\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"apply_to": [],
"id": "10323541",
"labels": {},
"name": "production-fw",
"rule": [
{
"description": "",
"destination_ips": [
"0.0.0.0/0",
"::/0"
],
"direction": "out",
"port": "any",
"protocol": "tcp",
"source_ips": []
},
{
"description": "",
"destination_ips": [
"0.0.0.0/0",
"::/0"
],
"direction": "out",
"port": "any",
"protocol": "udp",
"source_ips": []
},
{
"description": "",
"destination_ips": [],
"direction": "in",
"port": "22",
"protocol": "tcp",
"source_ips": [
"0.0.0.0/0",
"::/0"
]
},
{
"description": "",
"destination_ips": [],
"direction": "in",
"port": "443",
"protocol": "tcp",
"source_ips": [
"0.0.0.0/0",
"::/0"
]
},
{
"description": "",
"destination_ips": [],
"direction": "in",
"port": "80",
"protocol": "tcp",
"source_ips": [
"0.0.0.0/0",
"::/0"
]
}
]
},
"sensitive_attributes": [],
"identity_schema_version": 0,
"private": "bnVsbA=="
}
]
},
{
"mode": "managed",
"type": "hcloud_network",
"name": "prodnet",
"provider": "provider[\"registry.terraform.io/hetznercloud/hcloud\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"delete_protection": false,
"expose_routes_to_vswitch": false,
"id": "11773043",
"ip_range": "10.0.0.0/16",
"labels": {},
"name": "prod-network"
},
"sensitive_attributes": [],
"identity_schema_version": 0,
"private": "bnVsbA=="
}
]
},
{
"mode": "managed",
"type": "netbox_ip_range",
"name": "prodnet",
"provider": "provider[\"registry.terraform.io/e-breuninger/netbox\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"description": null,
"end_address": "10.0.255.254/16",
"id": "1",
"role_id": null,
"size": 65534,
"start_address": "10.0.0.1/16",
"status": "active",
"tags": null,
"tags_all": [],
"tenant_id": null,
"vrf_id": null
},
"sensitive_attributes": [],
"identity_schema_version": 0,
"private": "bnVsbA=="
}
]
}
],
"check_results": null
}