Google Cloud Filestore inventory

Record the users and owners of file shares.

Description

This entry lists a Filestore instance declared in Terraform.

Potential impact

A share can incur charges after clients stop using it. Its NFS export rules may still allow those clients to connect.

Remediation

Record the owner and workloads that mount the share. Check network access, NFS export options, backups and encryption keys.

Examples

The example adds labels to shared-storage. To create the instance, also supply the required file_shares and networks blocks.

Before

hcl
resource "google_filestore_instance" "shared" {
  name     = "shared-storage"
  location = "us-central1-b"
  tier     = "BASIC_SSD"
}

After

hcl
resource "google_filestore_instance" "shared" {
  name     = "shared-storage"
  location = "us-central1-b"
  tier     = "BASIC_SSD"

  labels = {
    service = "shared-storage"
    env     = "prod"
  }
}

References