initial terraform code

This commit is contained in:
Oli
2022-10-09 21:13:41 +00:00
parent f73b890e18
commit 8072eb9434
9 changed files with 314 additions and 0 deletions

13
network.tf Normal file
View File

@@ -0,0 +1,13 @@
# Hetzner Cloud Networks
resource "hcloud_network" "vpc" {
name = "VPC"
ip_range = "10.0.0.0/24"
}
resource "hcloud_network_subnet" "subnet" {
type = "cloud"
network_id = hcloud_network.vpc.id
network_zone = "eu-central"
ip_range = "10.0.0.0/24"
}