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

19
volume.tf Normal file
View File

@@ -0,0 +1,19 @@
# Hetzner Cloud Volume
resource "hcloud_volume" "web" {
name = "WEB"
location = "fsn1"
size = 10
format = "ext4"
delete_protection = true
labels = {
"env" : "prod"
"attachment" : "WEB"
}
}
resource "hcloud_volume_attachment" "volume_attachment_web" {
volume_id = hcloud_volume.web.id
server_id = hcloud_server.web.id
automount = false
}