Skip to content

Instantly share code, notes, and snippets.

@jtslear
Created May 19, 2017 12:42
Show Gist options
  • Save jtslear/63f128788cc258fd1cd79e3cfaca9afd to your computer and use it in GitHub Desktop.
Save jtslear/63f128788cc258fd1cd79e3cfaca9afd to your computer and use it in GitHub Desktop.
34s synk master● % serverless deploy
Serverless: Creating deployment...
Serverless: Checking deployment create progress...
..
Serverless: Done...
Serverless: Packaging service...
Serverless: Compiling function "first"...
Serverless: Uploading artifacts...
Serverless: Artifacts successfully uploaded...
Serverless: Updating deployment...
Serverless: Checking deployment update progress...
.............
Error --------------------------------------------------
Deployment failed: RESOURCE_ERROR
{"ResourceType":"cloudfunctions.v1beta2.function","ResourceErrorCode":"400","ResourceErrorMessage":"Function
load error: Node.js module defined by file index.js
is expected to export function named http"}
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Forums: forum.serverless.com
Chat: gitter.im/serverless/serverless
Your Environment Information -----------------------------
OS: darwin
Node Version: 6.9.5
Serverless Version: 1.13.2
5m3s synk master● % gcloud beta functions describe http
availableMemoryMb: 256
entryPoint: http
httpsTrigger:
url: https://us-central1-asdf-165014.cloudfunctions.net/http
latestOperation: operations/YXNkZi0xNjUwMTQvdXMtY2VudHJhbDEvaHR0cC8yS3NaVElOU0xLWQ
name: projects/asdf-165014/locations/us-central1/functions/http
serviceAccount: asdf-165014@appspot.gserviceaccount.com
sourceArchiveUrl: gs://sls-synk-dev-1495197075934/serverless/synk/dev/1495197091614-2017-05-19T12:31:31.614Z/synk.zip
status: FAILED
timeout: 60s
updateTime: '2017-05-19T12:31:41Z'
7s synk master● % vim index.js
10s synk master● % serverless deploy
Serverless: Packaging service...
Serverless: Compiling function "first"...
Serverless: Uploading artifacts...
Serverless: Artifacts successfully uploaded...
Serverless: Updating deployment...
Serverless: Checking deployment update progress...
.
Serverless: Done...
Service Information
service: synk
project: asdf-165014
stage: dev
region: us-central1
Deployed functions
first
https://us-central1-asdf-165014.cloudfunctions.net/http
21s synk master● % gcloud beta functions describe http
availableMemoryMb: 256
entryPoint: http
httpsTrigger:
url: https://us-central1-asdf-165014.cloudfunctions.net/http
latestOperation: operations/YXNkZi0xNjUwMTQvdXMtY2VudHJhbDEvaHR0cC8yS3NaVElOU0xLWQ
name: projects/asdf-165014/locations/us-central1/functions/http
serviceAccount: asdf-165014@appspot.gserviceaccount.com
sourceArchiveUrl: gs://sls-synk-dev-1495197075934/serverless/synk/dev/1495197091614-2017-05-19T12:31:31.614Z/synk.zip
status: FAILED
timeout: 60s
updateTime: '2017-05-19T12:31:41Z'
7s synk master● % serverless deploy
Serverless: Packaging service...
Serverless: Compiling function "first"...
Serverless: Uploading artifacts...
Serverless: Artifacts successfully uploaded...
Serverless: Updating deployment...
Serverless: Checking deployment update progress...
................
Serverless: Done...
Service Information
service: synk
project: asdf-165014
stage: dev
region: us-central1
Deployed functions
first
https://us-central1-asdf-165014.cloudfunctions.net/http
1m43s synk master● % gcloud beta functions describe http
availableMemoryMb: 256
entryPoint: http
httpsTrigger:
url: https://us-central1-asdf-165014.cloudfunctions.net/http
latestOperation: operations/YXNkZi0xNjUwMTQvdXMtY2VudHJhbDEvaHR0cC84Ym5qbWFOYU8yYw
name: projects/asdf-165014/locations/us-central1/functions/http
serviceAccount: asdf-165014@appspot.gserviceaccount.com
sourceArchiveUrl: gs://sls-synk-dev-1495197075934/serverless/synk/dev/1495197530692-2017-05-19T12:38:50.692Z/synk.zip
status: READY
timeout: 60s
updateTime: '2017-05-19T12:39:01Z'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment