Google Filestore Instance

This page shows how to write Terraform for Filestore Instance and write them securely.

google_filestore_instance (Terraform)

The Instance in Filestore can be configured in Terraform with the resource name google_filestore_instance. The following sections describe 3 examples of how to use the resource and its parameters.

Example Usage from GitHub

main.tf#L16
resource "google_filestore_instance" "tools" {
  name = "tools"
  zone = var.zone
  tier = "BASIC_HDD"

  file_shares {
main.tf#L16
resource "google_filestore_instance" "tools" {
  name = "tools"
  zone = var.zone
  tier = "BASIC_HDD"

  file_shares {
main.tf#L16
resource "google_filestore_instance" "tools" {
  name = "tools"
  project = var.project
  zone = var.zone
  tier = "BASIC_HDD"

Parameters

  • create_time requiredcomputed - string
    • Creation timestamp in RFC3339 text format.

  • description optional - string
    • A description of the instance.

  • etag requiredcomputed - string
    • Server-specified ETag for the instance resource to prevent simultaneous updates from overwriting each other.

  • id optionalcomputed - string
  • labels optional - map / string
    • Resource labels to represent user-provided metadata.

  • name required - string
    • The resource name of the instance.

  • project optionalcomputed - string
  • tier required - string
    • The service tier of the instance. Possible values: ["TIER_UNSPECIFIED", "STANDARD", "PREMIUM", "BASIC_HDD", "BASIC_SSD", "HIGH_SCALE_SSD"]

  • zone required - string
    • The name of the Filestore zone of the instance.

Explanation in Terraform Registry

A Google Cloud Filestore instance. To get more information about Instance, see:

Frequently asked questions

What is Google Filestore Instance?

Google Filestore Instance is a resource for Filestore of Google Cloud Platform. Settings can be wrote in Terraform.

Where can I find the example code for the Google Filestore Instance?

For Terraform, the GoogleCloudPlatform/eda-examples, mmm/crd-workstations and ziwang492/gcp_slurm_job_based_accounting source code examples are useful. See the Terraform Example section for further details.

security-icon

Scan your IaC problem in 3 minutes for free

You can keep your IaC security for free. No credit card required.