-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from jgeewax/storage-tutorial
Fixed #37 - Added getting started tutorial for gcloud.storage.
- Loading branch information
Showing
6 changed files
with
348 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
* **Create a project** | ||
|
||
Start off by visiting https://cloud.google.com/console | ||
and click on the big red button | ||
that says "Create Project". | ||
|
||
* **Choose a name** | ||
|
||
In the box that says "name", | ||
choose something friendly. | ||
This is going to be the *human-readable* name | ||
for your project. | ||
|
||
* **Choose an ID** | ||
|
||
In the box that says "ID", | ||
choose something unique | ||
(hyphens are OK). | ||
I typically choose a project name | ||
that starts with my initials, | ||
then a hyphen, | ||
then a unique identifier for the work I'm doing. | ||
For this example, | ||
you might choose ``<initials>-quickstart``. | ||
|
||
Then click OK | ||
(give it a second to create your project). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
Now that you have a project, | ||
we need to make sure we are able to access our data. | ||
There are many ways to authenticate, | ||
but we're going to use a Service Account for today. | ||
|
||
A *Service Account* is sort of like a username and password | ||
(like when you're connecting to your MySQL database), | ||
except the username is automatically generated | ||
(and is an e-mail address) | ||
and the password is actually a private key file. | ||
|
||
To create a Service Account: | ||
|
||
* **Click on Credentials** | ||
under the "APIs & Auth" section. | ||
|
||
* **Click the big red button** | ||
that says "Create New Client ID" | ||
under the OAuth section | ||
(the first one). | ||
|
||
* **Choose "Service Account"** | ||
and click the blue button | ||
that says "Create Client ID". | ||
|
||
* **This will automatically** | ||
download a private key file. | ||
**Do not lose this.** | ||
|
||
* **Rename your key** something shorter. | ||
I like to name the key ``<project name>.p12``. | ||
|
||
This is like your password for the account. | ||
|
||
* **Copy the long weird e-mail address** | ||
labeled "E-mail address" | ||
in the information section | ||
for the Service Account | ||
you just created. | ||
|
||
This is like your username for the account. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.