Creating the filestore
You can create a filestore through the Google Cloud web UI or the Google Cloud CLI.
Creation through the Web UI
-
Log in to the Google Cloud console at https://console.cloud.google.com/
-
Click
. -
Under
, choose a name for the instance. -
Under Sizing guide.
, select an and a , as recommended in the -
Under Sizing guide for guidance.
, enter the minimum capacity available in the selected . See the -
Under VPC (check the Google Cloud worksheet)
, select the same region as in the prepared -
Under Google Cloud worksheet).
, select the prepared VPC (check the -
Under Google Cloud worksheet.
, choose a name for this file share. You will need the name when accessing NFS data, and therefore you must document it in the -
Leave the remaining settings as they are and click
.
Creation through the CLI
Note: Check the Google Cloud documentation for:
gcloud filestore instances create
as this command has a lot of different options.
-
Run the following command to create an encrypted EFS file system:
gcloud filestore instances create <FILESTORE_NAME> --zone=<ZONE> --description="<DESCRIPTION>" --tier=<TIER> --file-share=name=<FILE_SHARE_NAME>,capacity=<SIZE> --network=name=<VPC_NAME>,connect-mode=DIRECT_PEERING
Where:
<FILESTORE_NAME>
is the chosen name or ID for the filestore instance<ZONE>
is the instance compute zone (for example,us-central1-a
). The value set here overrides the default compute zone property value for this command invocation.<DESCRIPTION>
is an optional description of the network<TIER>
is the service tier for the Cloud Filestore instance, and can have a value of basic-hdd, basic-ssd, enterprise, high-scale-ssd, premium or standard, with a default value of BASIC_HDD. See the Sizing guide for guidance<FILE_SHARE_NAME>
is the logical name of the volume<SIZE>
is the capacity of the volume inGB
orTB
units, withGB
being the default if unspecified. See the Sizing guide for guidance.<VPC_NAME>
is the prepared VPC (check the Google Cloud worksheet).For example:
gcloud filestore instances create gcp-arcsight-test-fs --zone=us-central1-a --description="Arcsight Suite NFS" --tier=basic-hdd --file-share=name=arcsight_suite,capacity=1024 --network=name=gcp-arcsight-test,connect-mode=DIRECT_PEERING
Record the filesystem
<FILE_SHARE_NAME>
value in the Google Cloud worksheet. -
Verify that the filestore is ready by running following command:
gcloud filestore instances list --filter=name:<FILESTORE_NAME>
Where:
<FILESTORE_NAME>
is the chosen name or ID for the filestore instanceExample command and output:
gcloud filestore instances list --filter=name:gcp-arcsight-test
INSTANCE_NAME: gcp-arcsight-test LOCATION: us-central1-a TIER: BASIC_HDD CAPACITY_GB: 1024 FILE_SHARE_NAME: arcsight_suite IP_ADDRESS: 10.197.224.90 STATE: READY CREATE_TIME: 2023-07-18T19:08:31
Record the filesystem
IP_ADDRESS
from the output in the Google Cloud worksheet.