Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Google Cloud Platform for Developers

You're reading from   Google Cloud Platform for Developers Build highly scalable cloud solutions with the power of Google Cloud Platform

Arrow left icon
Product type Paperback
Published in Jul 2018
Publisher Packt
ISBN-13 9781788837675
Length 506 pages
Edition 1st Edition
Arrow right icon
Authors (2):
Arrow left icon
Ted Hunter Ted Hunter
Author Profile Icon Ted Hunter
Ted Hunter
Steven Porter Steven Porter
Author Profile Icon Steven Porter
Steven Porter
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Preface 1. Why GCP? FREE CHAPTER 2. The Google Cloud Console 3. APIs, CLIs, IAM, and Billing 4. Google App Engine 5. Google Kubernetes Engine 6. Google Cloud Functions 7. Google Compute Engine 8. NoSQL with Datastore and Bigtable 9. Relational Data with Cloud SQL and Cloud Spanner 10. Google Cloud Storage 11. Stackdriver 12. Change Management 13. GCP Networking for Developers 14. Messaging with Pub/Sub and IoT Core 15. Integrating with Big Data Solutions on GCP 16. Other Books You May Enjoy

Deploying Cloud Functions

There are a number of ways to deploy Cloud Functions. We've already covered the one method: using the Cloud Console inline editor. This method is simple and straightforward, but it doesn't hold water in terms of release engineering. For real-world applications, there are a few better alternatives:

  • Deploying from a GCS bucket
  • Deploying from a local filesystem
  • Deploying from a Google Cloud Source Repository

All three methods can be done using the gcloud beta functions deploy command. This command takes an optional --source argument, which accepts a GCS bucket path, a Cloud Source Repository, or a local filesystem path.

Deploying from a local machine

When deploying from a local filesystem...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime