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, 2019 in GCP by anonymous
• 18,440 points
504 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, 2019 by Sirajul
• 58,130 points

Related Questions In GCP

+1 vote
1 answer

Set up log delivery for a cloud storage bucket.

The following steps describe how to set ...READ MORE

answered Nov 22, 2019 in GCP by Sirajul
• 58,130 points
123 views
0 votes
1 answer

How to create a Cloud dataproc cluster withn custom machne type using gcloud?

Run the gcloud dataproc clusters create command with the ...READ MORE

answered Nov 26, 2019 in GCP by Sirajul
• 58,130 points
484 views
0 votes
1 answer

GCP Error: 403: Access Denied

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

answered Oct 9, 2019 in GCP by Sirajul
• 58,130 points
624 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, 2019 in GCP by Sirajul
• 58,130 points
1,531 views
0 votes
1 answer

How to set up and use Pub/Sub Notifications for Cloud Storage?

The following steps add a notification configuration to your ...READ MORE

answered Nov 21, 2019 in GCP by Sirajul
• 58,130 points
618 views