141 lines
3.9 KiB
JSON
141 lines
3.9 KiB
JSON
{
|
|
"version": 4,
|
|
"terraform_version": "1.14.3",
|
|
"serial": 7,
|
|
"lineage": "7c69e311-e46b-0d39-a679-49d13d742523",
|
|
"outputs": {},
|
|
"resources": [
|
|
{
|
|
"module": "module.private-network",
|
|
"mode": "managed",
|
|
"type": "hcloud_network",
|
|
"name": "privnet",
|
|
"provider": "provider[\"registry.terraform.io/hetznercloud/hcloud\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"delete_protection": false,
|
|
"expose_routes_to_vswitch": false,
|
|
"id": "11776424",
|
|
"ip_range": "10.0.0.0/8",
|
|
"labels": null,
|
|
"name": "privnet"
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"private": "bnVsbA=="
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.private-network",
|
|
"mode": "managed",
|
|
"type": "hcloud_network_subnet",
|
|
"name": "privsubnet",
|
|
"provider": "provider[\"registry.terraform.io/hetznercloud/hcloud\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"gateway": "10.0.0.1",
|
|
"id": "11776424-10.0.1.0/24",
|
|
"ip_range": "10.0.1.0/24",
|
|
"network_id": 11776424,
|
|
"network_zone": "eu-central",
|
|
"type": "cloud",
|
|
"vswitch_id": null
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"private": "bnVsbA==",
|
|
"dependencies": [
|
|
"module.private-network.hcloud_network.privnet"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.prod-firewall",
|
|
"mode": "managed",
|
|
"type": "hcloud_firewall",
|
|
"name": "prod-fw",
|
|
"provider": "provider[\"registry.terraform.io/hetznercloud/hcloud\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"apply_to": [],
|
|
"id": "10325524",
|
|
"labels": {
|
|
"environment": "production"
|
|
},
|
|
"name": "prod-fw",
|
|
"rule": [
|
|
{
|
|
"description": "Allow HTTP",
|
|
"destination_ips": [],
|
|
"direction": "in",
|
|
"port": "80",
|
|
"protocol": "tcp",
|
|
"source_ips": [
|
|
"0.0.0.0/0",
|
|
"::/0"
|
|
]
|
|
},
|
|
{
|
|
"description": "Allow HTTP/S",
|
|
"destination_ips": [],
|
|
"direction": "in",
|
|
"port": "443",
|
|
"protocol": "tcp",
|
|
"source_ips": [
|
|
"0.0.0.0/0",
|
|
"::/0"
|
|
]
|
|
},
|
|
{
|
|
"description": "Allow SSH",
|
|
"destination_ips": [],
|
|
"direction": "in",
|
|
"port": "22",
|
|
"protocol": "tcp",
|
|
"source_ips": [
|
|
"0.0.0.0/0",
|
|
"::/0"
|
|
]
|
|
},
|
|
{
|
|
"description": "Allow all outbound TCP traffic",
|
|
"destination_ips": [
|
|
"0.0.0.0/0",
|
|
"::/0"
|
|
],
|
|
"direction": "out",
|
|
"port": "",
|
|
"protocol": "tcp",
|
|
"source_ips": []
|
|
},
|
|
{
|
|
"description": "Allow all outbound UDP traffic",
|
|
"destination_ips": [
|
|
"0.0.0.0/0",
|
|
"::/0"
|
|
],
|
|
"direction": "out",
|
|
"port": "",
|
|
"protocol": "udp",
|
|
"source_ips": []
|
|
}
|
|
]
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"private": "bnVsbA=="
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"check_results": null
|
|
}
|