Created
February 16, 2022 19:22
-
-
Save sergiolucero/c5b58934e1bf0afb9f3432f730921922 to your computer and use it in GitHub Desktop.
Chalice + GCP = Goblet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from goblet import Goblet, goblet_entrypoint | |
app = Goblet(function_name="goblet_example") | |
goblet_entrypoint(app) | |
@app.route('/home') | |
def home(): | |
return {"hello": "world"} |
$ curl https://goblet-example-yol8sbt.uc.gateway.dev/home
{"hello": "world"}
remember to set all those permissions...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
goblet deploy -l us-central1