Skip to content

Commit ecbae42

Browse files
author
Shun Fan
committed
Update README.md with intructions on setting environment variable
1 parent 89a1bd1 commit ecbae42

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

storage/storage_transfer/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ This app creates two types of transfers using the Transfer Service tool.
77
1. Set up a project on Google Developers Console.
88
1. Go to the [Developers Console](https://cloud.google.com/console) and create or select your project.
99
You will need the project ID later.
10+
1. Within Developers Console, select APIs & auth > Credentials.
11+
1. Add a new JSON key credential for a service account.
12+
1. Set the environment variable GOOGLE_APPLICATION_CREDENTIALS to point to your JSON key.
1013
1. Add the Storage Transfer service account, [email protected] as an
1114
editor of your project.
1215
1. Set up gcloud for application default credentials.
1316
1. `gcloud components update`
1417
1. `gcloud auth login`
1518
1. `gcloud config set project PROJECT_ID`
16-
1. `export GOOGLE_APPLICATION_CREDENTIALS=PATH/TO/CREDENTIALS.json`
1719
1. Install [Google API Client Library for Python](https://developers.google.com/api-client-library/python/start/installation).
1820

1921
## Transfer from Amazon S3 to Google Cloud Storage

0 commit comments

Comments
 (0)