This page shows you how to create a Filestore instance by using either the Google Cloud console or the Google Cloud CLI.
Instructions for creating an instance
Google Cloud console
Before you begin
Enable Filestore API. It might take a few minutes for Filestore API to appear on the Service list under Quotas & System Limits.
The quota for a zonal or regional instance starts at
0. To use these capacities, you must first create and receive approval for a quota increase request before you can create an instance.If you need to create an instance using an enterprise or high scale SSD tier, you must run your operations directly through the Filestore API or by using
gcloud. Thesecreateoperations are not supported through the Google Cloud console.For more information, see Service tiers.
Google Cloud instructions
In the Google Cloud console, go to the Filestore Instances page.
Click Create Instance.
Enter all required fields and optional fields as needed based on the instructions in the following sections of this page.
Click Create.
gcloud
Before you begin
To use the gcloud CLI, you must either install the gcloud CLI or use the Cloud Shell that's built into the Google Cloud console:
Enable Filestore API. It might take a few minutes for Filestore API to appear on the Service list under Quotas & System Limits.
gcloud command for creating a Filestore instance
You can create a Filestore instance by running the filestore
instances create command.
Quota for instances varies by project, region, and tier. For more information,
see Quotas or Request a quota increase.
gcloud filestore instances create INSTANCE_ID \
[--project=PROJECT_ID] \
[--location=LOCATION] \
[--description=DESCRIPTION] \
[--performance=PERFORMANCE] \
--tier=TIER \
--file-share=name="FILE_SHARE_NAME",capacity=FILE_SHARE_SIZE \
--network=name="VPC-NETWORK",[connect-mode=CONNECT_MODE],[reserved-ip-range="RESERVED_IP_ADDRESS"] \
[--labels=KEY=VALUE,[KEY=VALUE,…]] \
[--kms-key=KMS_KEY] \
[--deletion-protection] \
[--deletion-protection-reason="PROTECTION_REASON"]
Where:
- INSTANCE_ID with the instance ID of the Filestore instance that you want to create. See Name your instance.
PROJECT_ID with the project ID of the Google Cloud project that contains the Filestore instance. You can skip this flag if the Filestore instance is in the
gclouddefault project. You can set the default project by running theconfig set projectcommand:gcloud config set project PROJECT_IDLOCATION with the location where you want the Filestore instance to reside. See Select a location. You can skip this flag if the Filestore instance is in the
gclouddefault location. You can set the default location by running theconfig set filestore/zonecommand:gcloud config set filestore/zone zone