google_filestore_backup

A Google Cloud Filestore backup.

To get more information about Backup, see:

Open in Cloud Shell

Example Usage - Filestore Backup Basic

resource "google_filestore_instance" "instance" {
  name     = "tf-fs-inst"
  location = "us-central1-b"
  tier     = "BASIC_HDD"

  file_shares {
    capacity_gb = 1024
    name        = "share1"
  }

  networks {
    network      = "default"
    modes        = ["MODE_IPV4"]
    connect_mode = "DIRECT_PEERING"
  }
}

resource "google_filestore_backup" "backup" {
  name              = "tf-fs-bkup"
  location          = "us-central1"
  description       = "This is a filestore backup for the test instance"
  source_instance   = google_filestore_instance.instance.id
  source_file_share = "share1"

  labels = {
    "files":"label1",
    "other-label": "label2"
  }
}

Argument Reference

The following arguments are supported:


Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

Timeouts

This resource provides the following Timeouts configuration options:

Import

Backup can be imported using any of these accepted formats:

In Terraform v1.5.0 and later, use an import block to import Backup using one of the formats above. For example:

import {
  id = "projects/{{project}}/locations/{{location}}/backups/{{name}}"
  to = google_filestore_backup.default
}

When using the terraform import command, Backup can be imported using one of the formats above. For example:

$ terraform import google_filestore_backup.default projects/{{project}}/locations/{{location}}/backups/{{name}}
$ terraform import google_filestore_backup.default {{project}}/{{location}}/{{name}}
$ terraform import google_filestore_backup.default {{location}}/{{name}}

User Project Overrides

This resource supports User Project Overrides.