Set up environment variables for gcloud tool to import/export data using Cloud Filestore.

0 votes
How to set the environment variables for gcloud tool to import/export data using Cloud Filestore?
Nov 4 in GCP by anonymous
• 5,500 points
30 views

1 answer to this question.

0 votes

Before you export or import data, you must set up environment variables for the gcloud tool and authenticate using your user account.

  1. Set an environment variable for your GCP project ID.

    PROJECT_ID="YOUR_PROJECT_ID"
  2. Use this variable to set your project as the active configuration for the gcloud tool.

    gcloud config set project ${PROJECT_ID}
  3. Authenticate using the gcloud tool.

    gcloud auth login
  4. Set an environment variable for your Cloud Storage bucket ID.

    BUCKET="YOUR_BUCKET_NAME[/NAMESPACE_PATH]"

    where YOUR_BUCKET_NAME is the name of the Cloud Storage bucket and NAMESPACE_PATH is an optional Cloud Storage namespace path (this is not a Datastore mode namespace). 

answered Nov 4 by Sirajul
• 37,480 points

Related Questions In GCP

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

GCP Error: 403: Access Denied

Check that your credentials are correct. For ...READ MORE

answered Oct 9 in GCP by Sirajul
• 37,480 points
23 views
0 votes
1 answer

Permissions issue with Google Cloud Storage Bucket.

You can regain access to the object by assigning an applicable role, like roles/storage.objectAdmin, to ...READ MORE

answered Oct 10 in GCP by Sirajul
• 37,480 points
47 views
0 votes
1 answer