Google Cloud Function - Hello World (Browser)
start free trial
Access the dashboard (https://console.cloud.google.com/) and login as your google account.
"New customers get $300 in free credits to spend on Google Cloud" as of 2021-05-09.
I used Google App Engine around 10 years ago, but was eligible for this trial.
You can check the free trial status on the upper right side of the dashboard.
create project & cloud function
dashboard > select project
> new project > project name = foobar > create
> cloud functions > create function > allow unauth > save > next
> "Cloud Build API is required to use the runtime selected" > enable api > enable
> [back to function page] > (choose a programming language) > deploy (this will take around 2 min)
> [function-name] > trigger > click on url
You should see the hello-world message.





Comments
Post a Comment