README 1.3 KB

1234567891011121314151617181920212223242526272829
  1. This component runs on Google App Engine. It reflects domain-fronted
  2. requests from a client to the Snowflake broker.
  3. You need the Go App Engine SDK in order to deploy the app.
  4. https://cloud.google.com/sdk/docs/#linux
  5. After unpacking, install the app-engine-go component:
  6. google-cloud-sdk/bin/gcloud components install app-engine-go
  7. To test locally, run
  8. google-cloud-sdk/bin/dev_appserver.py app.yaml
  9. The app will be running at http://127.0.0.1:8080/.
  10. To deploy to App Engine, first create a new project and app. You have to
  11. think of a unique name (marked as "<appname>" in the commands). You only
  12. have to do the "create" step once; subsequent times you can go straight
  13. to the "deploy" step. The "gcloud auth login" command will open a
  14. browser window so you can log in to a Google account.
  15. google-cloud-sdk/bin/gcloud auth login
  16. google-cloud-sdk/bin/gcloud projects create <appname>
  17. google-cloud-sdk/bin/gcloud app create --project=<appname>
  18. Then to deploy the project, run:
  19. google-cloud-sdk/bin/gcloud app deploy --project=<appname>
  20. To configure the Snowflake client to talk to the App Engine app, provide
  21. "https://<appname>.appspot.com/" as the --url option.
  22. UseBridges 1
  23. Bridge snowflake 0.0.2.0:1
  24. ClientTransportPlugin snowflake exec ./client -url https://<appname>.appspot.com/ -front www.google.com