Skip to content

Commit 67555e4

Browse files
michaelawyuAce Nassri
michaelawyu
authored and
Ace Nassri
committed
Removed --stage-bucket param from README files (#532)
* Removed the "--stage-bucket" param from README files * Minor Fix * Another Minor Fix
1 parent 23fe021 commit 67555e4

File tree

5 files changed

+16
-49
lines changed

5 files changed

+16
-49
lines changed

functions/datastore/README.md

+3-9
Original file line numberDiff line numberDiff line change
@@ -19,27 +19,21 @@ Functions for your project.
1919
git clone https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git
2020
cd nodejs-docs-samples/functions/datastore
2121

22-
1. Create a Cloud Storage Bucket to stage our deployment:
23-
24-
gsutil mb gs://YOUR_BUCKET_NAME
25-
26-
* Replace `YOUR_BUCKET_NAME` here and in subsequent commands with the name of your Cloud Storage Bucket.
27-
2822
1. Ensure the Cloud Datastore API is enabled:
2923

3024
[Click here to enable the Cloud Datastore API](https://console.cloud.google.com/flows/enableapi?apiid=datastore.googleapis.com&redirect=https://github.com/GoogleCloudPlatform/nodejs-docs-samples/tree/master/functions/datastore)
3125

3226
1. Deploy the "get" function with an HTTP trigger:
3327

34-
gcloud beta functions deploy get --stage-bucket YOUR_BUCKET_NAME --trigger-http
28+
gcloud beta functions deploy get --trigger-http
3529

3630
1. Deploy the "set" function with an HTTP trigger:
3731

38-
gcloud beta functions deploy set --stage-bucket YOUR_BUCKET_NAME --trigger-http
32+
gcloud beta functions deploy set --trigger-http
3933

4034
1. Deploy the "del" function with an HTTP trigger:
4135

42-
gcloud beta functions deploy del --stage-bucket YOUR_BUCKET_NAME --trigger-http
36+
gcloud beta functions deploy del --trigger-http
4337

4438
1. Call the "set" function to create a new entity:
4539

functions/gcs/README.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Functions for your project.
1818
git clone https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git
1919
cd nodejs-docs-samples/functions/gcs
2020

21-
1. Create a Cloud Storage Bucket to stage our deployment:
21+
1. Create a Cloud Storage Bucket:
2222

2323
gsutil mb gs://YOUR_BUCKET_NAME
2424

@@ -32,13 +32,11 @@ Functions for your project.
3232

3333
1. Deploy the "wordCount" function with an HTTP trigger:
3434

35-
gcloud alpha functions deploy wordCount --stage-bucket YOUR_BUCKET_NAME --trigger-http
36-
37-
* Replace `YOUR_BUCKET_NAME` with the name of your Cloud Storage Bucket.
35+
gcloud beta functions deploy wordCount --trigger-http
3836

3937
1. Call the "wordCount" function using the sample file:
4038

41-
gcloud alpha functions call wordCount --data '{"bucket":"YOUR_BUCKET_NAME","file":"sample.txt"}'
39+
gcloud beta functions call wordCount --data '{"bucket":"YOUR_BUCKET_NAME","file":"sample.txt"}'
4240

4341
* Replace `YOUR_BUCKET_NAME` with the name of your Cloud Storage Bucket.
4442

functions/imagemagick/README.md

+5-13
Original file line numberDiff line numberDiff line change
@@ -19,27 +19,19 @@ Functions for your project.
1919
git clone https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git
2020
cd nodejs-docs-samples/functions/imagemagick
2121

22-
1. Create a Cloud Storage bucket for storing images (if you already have one you
23-
want to use, you can skip this step):
22+
1. Create a Cloud Storage Bucket:
2423

2524
gsutil mb gs://YOUR_BUCKET_NAME
2625

27-
* Replace `YOUR_BUCKET_NAME` with the name of your image Bucket.
28-
29-
1. Create a Cloud Storage Bucket to stage our deployment:
30-
31-
gsutil mb gs://YOUR_STAGE_BUCKET_NAME
32-
33-
* Replace `YOUR_STAGE_BUCKET_NAME` with the name of your Cloud Storage Bucket.
26+
This storage bucket is used to upload images for the function to check.
3427

3528
1. Deploy the `blurOffensiveImages` function with a Storage trigger:
3629

37-
gcloud alpha functions deploy blurOffensiveImages --trigger-bucket=YOUR_BUCKET_NAME --stage-bucket=YOUR_STAGE_BUCKET_NAME
30+
gcloud beta functions deploy blurOffensiveImages --trigger-bucket=YOUR_BUCKET_NAME
3831

39-
* Replace `YOUR_BUCKET_NAME` with the name of your image Cloud Storage Bucket.
40-
* Replace `YOUR_STAGE_BUCKET_NAME` with the name of your Cloud Storage Bucket.
32+
* Replace `YOUR_BUCKET_NAME` with the name of the Cloud Storage Bucket you created earlier.
4133

42-
1. Upload an offensive image to your image Storage bucket, such as this image of
34+
1. Upload an offensive image to the Storage bucket, such as this image of
4335
a flesh-eating zombie: https://cdn.pixabay.com/photo/2015/09/21/14/24/zombie-949916_1280.jpg
4436

4537
1. Check the logs for the `blurOffensiveImages` function:

functions/pubsub/README.md

+3-12
Original file line numberDiff line numberDiff line change
@@ -26,28 +26,19 @@ can skip this step):
2626

2727
* Replace `YOUR_TOPIC_NAME` with the name of your Pub/Sub Topic.
2828

29-
1. Create a Cloud Storage Bucket to stage our deployment:
30-
31-
gsutil mb gs://YOUR_BUCKET_NAME
32-
33-
* Replace `YOUR_BUCKET_NAME` with the name of your Cloud Storage Bucket.
34-
3529
1. Deploy the `publish` function with an HTTP trigger:
3630

37-
gcloud alpha functions deploy publish --stage-bucket YOUR_BUCKET_NAME --trigger-http
38-
39-
* Replace `YOUR_BUCKET_NAME` with the name of your Cloud Storage Bucket.
31+
gcloud beta functions deploy publish --trigger-http
4032

4133
1. Deploy the `subscribe` function with the Pub/Sub topic as a trigger:
4234

43-
gcloud alpha functions deploy subscribe --stage-bucket YOUR_BUCKET_NAME --trigger-topic YOUR_TOPIC_NAME
35+
gcloud beta functions deploy subscribe --trigger-topic YOUR_TOPIC_NAME
4436

45-
* Replace `YOUR_BUCKET_NAME` with the name of your Cloud Storage Bucket.
4637
* Replace `YOUR_TOPIC_NAME` with the name of your Pub/Sub Topic.
4738

4839
1. Call the `publish` function:
4940

50-
gcloud alpha functions call publish --data '{"topic":"YOUR_TOPIC_NAME","message":"Hello World!"}'
41+
gcloud beta functions call publish --data '{"topic":"YOUR_TOPIC_NAME","message":"Hello World!"}'
5142

5243
* Replace `YOUR_TOPIC_NAME` with the name of your Pub/Sub Topic.
5344

functions/uuid/README.md

+2-10
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,13 @@ Functions for your project.
2020
git clone https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git
2121
cd nodejs-docs-samples/functions/uuid
2222

23-
1. Create a Cloud Storage Bucket to stage our deployment:
24-
25-
gsutil mb gs://[YOUR_BUCKET_NAME]
26-
27-
* Replace `[YOUR_BUCKET_NAME]` with the name of your Cloud Storage Bucket.
28-
2923
1. Deploy the `uuid` function with an HTTP trigger:
3024

31-
gcloud alpha functions deploy uuid --bucket [YOUR_BUCKET_NAME] --trigger-http
32-
33-
* Replace `[YOUR_BUCKET_NAME]` with the name of your Cloud Storage Bucket.
25+
gcloud beta functions deploy uuid --trigger-http
3426

3527
1. Call the `uuid` function:
3628

37-
gcloud alpha functions call uuid
29+
gcloud beta functions call uuid
3830

3931
You should see something like this in your console:
4032

0 commit comments

Comments
 (0)