aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/digitalocean/data_volume/main.tf
blob: 9a58c50b52c1be96e7ffa9c95c38d019651e2cff (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                  
resource "digitalocean_volume" "this" {
  region                   = var.region
  name                     = var.name
  size                     = var.size
  initial_filesystem_type  = "ext4"
  initial_filesystem_label = "data"

  lifecycle {
    prevent_destroy = true
  }
}

resource "digitalocean_project_resources" "this" {
  project   = var.project_id
  resources = [digitalocean_volume.this.urn]
}