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
resource "google_filestore_instance" "tools" {
name = "tools"
zone = var.zone
tier = "BASIC_HDD"
file_shares {
resource "google_filestore_instance" "tools" {
name = "tools"
zone = var.zone
tier = "BASIC_HDD"
file_shares {
resource "google_filestore_instance" "tools" {
name = "tools"
project = var.project
zone = var.zone
tier = "BASIC_HDD"
Parameters
-
create_time
optional computed - string
Creation timestamp in RFC3339 text format.
-
description
optional - string
A description of the instance.
-
etag
optional computed - string
Server-specified ETag for the instance resource to prevent simultaneous updates from overwriting each other.
Resource labels to represent user-provided metadata.
-
name
required - string
The resource name of the instance.
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.
-
file_shares
list block-
capacity_gb
required - number
File share capacity in GiB. This must be at least 1024 GiB for the standard tier, or 2560 GiB for the premium tier.
-
name
required - string
The name of the fileshare (16 characters or less)
-
-
networks
list block-
ip_addresses
optional computed - list of string
A list of IPv4 or IPv6 addresses.
-
modes
required - list of string
IP versions for which the instance has IP addresses assigned. Possible values: ["ADDRESS_MODE_UNSPECIFIED", "MODE_IPV4", "MODE_IPV6"]
-
network
required - string
The name of the GCE VPC network to which the instance is connected.
-
reserved_ip_range
optional computed - string
A /29 CIDR block that identifies the range of IP addresses reserved for this instance.
-
-
timeouts
single block
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.