Transferring Data to a Storage That Belongs to a Different Project

Overview

It is possible to transfer data to a Google Cloud storage that belongs to a different project under the same account. 

Prerequisites

  • You can create or access a service account.
  • You are able to create a private key either from 'IAM and Admin' or from API Manager.
  • You are able to download Service Account Key.

Procedures

1. Create a service account in the project where the storage is and create a dedicated service account (IAM and Admin).

Then create a private key either from 'IAM and Admin' or from API Manager > Credential > create credentials > Service Account Key.

2. Select a private key in format P12 (the backward compatibility format) and copy this key file under /opt/aspera/etc/trapd. For example:

/opt/aspera/etc/trapd/999996a12345678b2e4aef12345e1117777d800e-privatekey.p12

3. Modify the docroot of the transfer user in /opt/aspera/etc/aspera.conf in the following format:

<absolute>gs://service-account@storage.googleapis.com/my_bucket/my_path/?aspera.gssession.projectId=project_Id&aspera.gssession.pk12=/opt/aspera/etc/trapd/name-of-the-privatekey.p12</absolute>

For example:

<absolute>gs://se-service-account%40demo-resource-1234.gserviceaccount.com@storage.googleapis.com/aspera/salesdemo/?aspera.gssession.projectId=1021234564321&amp;aspera.gssession.pk12=/opt/aspera/etc/trapd/999996a12345678b2e4aef12345e1117777d800e-privatekey-privatekey.p12</absolute>

4. Restart asperanoded

#service asperanoded restart
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk