@@ -14,26 +14,24 @@ to create one first and then come back and run this sample. |
14 | 14 | reuse an existing project by clicking on it. |
15 | 15 | 1. Note: You will need to enable billing for the project to use Compute |
16 | 16 | Engine. |
17 | | - 1. Click "Overview" in the left-side navigation menu and copy your Project ID |
18 | | - for use in step 3.3 below. |
19 | 17 |
|
20 | 18 | 1. Authentication instructions to run the sample (on your local machine or on a Compute Engine VM): |
21 | 19 | * Running the sample locally on your development machine: |
22 | 20 | 1. Install [Google Cloud SDK](https://cloud.google.com/sdk/) |
23 | 21 | 1. Run the following command to authorize the Cloud SDK and configure your project: |
24 | 22 | <pre>gcloud init</pre> |
25 | | - 1. Add your authenticated email account as <user-email> and <writer-email> elements to the queue.xml file of the App Engine app that created the pull queue task you're trying to access. For more details, please see |
26 | | - [Defining Pull Queues](https://cloud.google.com/appengine/docs/java/config/queue#Defining_Pull_Queues) |
27 | | - on the Task Queue configuration page. |
| 23 | + 1. Add your authenticated email account as 'user_email' and 'writer_email' elements to the queue.yaml |
| 24 | + file of the App Engine app that created the pull queue task you're trying to access. For more details, please see |
| 25 | + [Defining Pull Queues](https://cloud.google.com/appengine/docs/java/taskqueue/overview-pull#Java_Defining_pull_queues). |
28 | 26 | * Running the sample on a Google Compute Engine VM using Default Application Credentials: |
29 | 27 | 1. Create a service account and add it to queue.xml |
30 | 28 | 1. In the API Manager > [Credentials](https://pantheon.corp.google.com/apis/credentials) |
31 | 29 | section click "Create credentials" and choose "Service account key". |
32 | 30 | 1. On the "Create service account key" page, select "Compute Engine default service account" from the "Service Account" drop-down menu. Leave the Key type set to JSON and click the "Create" button. |
33 | 31 | 1. Once the service account is created, click the "Manage service accounts" link and copy the "Service account ID" of the "Compute Engine default service account". |
34 | | - 1. Add the "Service account ID" as <user-email> and <writer-email> elements to the queue.xml file of the App Engine app that created the pull queue task you're trying to access. For more details, please see |
35 | | - [Defining Pull Queues](https://cloud.google.com/appengine/docs/java/config/queue#Defining_Pull_Queues) |
36 | | - on the Task Queue configuration page. |
| 32 | + 1. Add the "Service account ID" as 'user_email' and 'writer_email' elements to the queue.yaml file of the |
| 33 | + App Engine app that created the pull queue task you're trying to access. For more details, please see |
| 34 | + [Defining Pull Queues](https://cloud.google.com/appengine/docs/java/taskqueue/overview-pull#Java_Defining_pull_queues). |
37 | 35 |
|
38 | 36 | 1. Create a Compute Engine VM Instance. |
39 | 37 | 1. In the [Cloud Console](https://console.cloud.google.com/project) |
|