Skip to content
This repository has been archived by the owner on Mar 6, 2022. It is now read-only.

lanly-dev/easyserverless

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The vscode project has move to https://github.com/lanly-dev/vscode-emc

Deployment

Create buckets to host input and output files and add public permission to upload/download input/output

gsutil mb -p [PROJECT_ID] gs://[BUCKET_NAME]-input
gsutil acl ch -u allUsers:W gs://[BUCKET_NAME]-input

gsutil mb -p [PROJECT_ID] gs://[BUCKET_NAME]-output
gsutil iam ch allUsers:roles/storage.objectViewer gs://[BUCKET_NAME]-output

Deploy Cloud Function gcf-easyserverless

gcloud functions deploy easyServerless --stage-bucket [BUCKET_NAME] --trigger-http --allow-unauthenticated --runtime nodejs16 --timeout 540 --source ./gcf-easyserverless