initial terraform code
This commit is contained in:
19
volume.tf
Normal file
19
volume.tf
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user