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_timeoptional computed - string
Creation timestamp in RFC3339 text format.
-
descriptionoptional - string
A description of the instance.
-
etagoptional computed - string
Server-specified ETag for the instance resource to prevent simultaneous updates from overwriting each other.
Resource labels to represent user-provided metadata.
-
namerequired - 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"]
-
zonerequired - string
The name of the Filestore zone of the instance.
-
file_shareslist block-
capacity_gbrequired - number
File share capacity in GiB. This must be at least 1024 GiB for the standard tier, or 2560 GiB for the premium tier.
-
namerequired - string
The name of the fileshare (16 characters or less)
-
-
networkslist block-
ip_addressesoptional computed - list of string
A list of IPv4 or IPv6 addresses.
-
modesrequired - list of string
IP versions for which the instance has IP addresses assigned. Possible values: ["ADDRESS_MODE_UNSPECIFIED", "MODE_IPV4", "MODE_IPV6"]
-
networkrequired - string
The name of the GCE VPC network to which the instance is connected.
-
reserved_ip_rangeoptional computed - string
A /29 CIDR block that identifies the range of IP addresses reserved for this instance.
-
-
timeoutssingle 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.