Create an instance

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. These create operations are not supported through the Google Cloud console.

    For more information, see Service tiers.

Google Cloud instructions

  1. In the Google Cloud console, go to the Filestore Instances page.

    Go to Instances

  2. Click Create Instance.

  3. Enter all required fields and optional fields as needed based on the instructions in the following sections of this page.

  4. Click Create.

gcloud

Before you begin

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 gcloud default project. You can set the default project by running the config set project command:

      gcloud config set project PROJECT_ID
    
  • LOCATION 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 gcloud default location. You can set the default location by running the config set filestore/zone command:

      gcloud config set filestore/zone zone
    

    For the regional or enterprise tier, use the