Skip to content

Commit c96596a

Browse files
Fix command in README (GoogleCloudPlatform#2364)
1 parent 2e09356 commit c96596a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

appengine/standard/pubsub/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Before you can run or deploy the sample, you will need to do the following:
1919
$ gcloud pubsub subscriptions create [your-subscription-name] \
2020
--topic [your-topic-name] \
2121
--push-endpoint \
22-
https://[your-app-id].appspot.com/_ah/push-handlers/receive_messages/token=[your-token] \
22+
https://[your-app-id].appspot.com/_ah/push-handlers/receive_messages?token=[your-token] \
2323
--ack-deadline 30
2424

2525
3. Update the environment variables in ``app.yaml``.

appengine/standard_python37/pubsub/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ Before you can run or deploy the sample, you will need to do the following:
1313

1414
1. Enable the Cloud Pub/Sub API in the [Google Developers Console](https://console.developers.google.com/project/_/apiui/apiview/pubsub/overview).
1515

16-
2. Create a topic and subscription. The push auth service account must have Service Account Token Creator Role assigned, which can be done in the Cloud Console [IAM & admin](https://console.cloud.google.com/iam-admin/iam) UI. `--push-auth-token-audience` is optional. If set, remember to modify the audience field check in `main.py` (line 88).
16+
2. Create a topic and subscription. Your push auth service account must have Service Account Token Creator Role assigned, which can be done in the Cloud Console [IAM & admin](https://console.cloud.google.com/iam-admin/iam) UI. `--push-auth-token-audience` is optional. If set, remember to modify the audience field check in `main.py` (line 88).
1717

1818
$ gcloud pubsub topics create [your-topic-name]
1919
$ gcloud beta pubsub subscriptions create [your-subscription-name] \
2020
--topic=[your-topic-name] \
2121
--push-endpoint=\
22-
https://[your-app-id].appspot.com/_ah/push-handlers/receive_messages/token=[your-token] \
22+
https://[your-app-id].appspot.com/_ah/push-handlers/receive_messages?token=[your-token] \
2323
--ack-deadline=30 \
2424
--push-auth-service-account=[your-service-account-email] \
2525
--push-auth-token-audience=example.com
@@ -70,7 +70,7 @@ The simulated push request fails because it does not have a Cloud Pub/Sub-genera
7070

7171
## Running on App Engine
7272

73-
Note: Not all the files in the current directory are needed to run your code on App Engine. Specifically, `main_test.py` and the `data` directory, which contains a mocked private key file and a mocked public certs file, are for testing purposes only. They SHOULD NOT be included in when deploying your app. When your app is up and running, Cloud Pub/Sub creates tokens using a private key, then the Google Auth Python library takes care of verifying and decoding the token using Google's public certs, to confirm that the push requests indeed come from Cloud Pub/Sub.
73+
Note: Not all the files in the current directory are needed to run your code on App Engine. Specifically, `main_test.py` and the `data` directory, which contains a mocked private key file and a mocked public certs file, are for testing purposes only. They SHOULD NOT be included when deploying your app. When your app is up and running, Cloud Pub/Sub's push servers create tokens using a private key, then the Google Auth Python library takes care of verifying and decoding the token using Google's public certs, to confirm that the push requests indeed come from Cloud Pub/Sub.
7474

7575
In the current directory, deploy using `gcloud`:
7676

0 commit comments

Comments
 (0)