Skip to content

Instantly share code, notes, and snippets.

@schmiddy
Last active May 6, 2019 21:06
Show Gist options
  • Save schmiddy/893a00b9a8308c9933a81c85f5de90ab to your computer and use it in GitHub Desktop.
Save schmiddy/893a00b9a8308c9933a81c85f5de90ab to your computer and use it in GitHub Desktop.
Serverless: Load command config
Serverless: Load command config:credentials
Serverless: Load command create
Serverless: Load command install
Serverless: Load command package
Serverless: Load command deploy
Serverless: Load command deploy:function
Serverless: Load command deploy:list
Serverless: Load command deploy:list:functions
Serverless: Load command invoke
Serverless: Load command invoke:local
Serverless: Load command info
Serverless: Load command logs
Serverless: Load command metrics
Serverless: Load command print
Serverless: Load command remove
Serverless: Load command rollback
Serverless: Load command rollback:function
Serverless: Load command slstats
Serverless: Load command plugin
Serverless: Load command plugin
Serverless: Load command plugin:install
Serverless: Load command plugin
Serverless: Load command plugin:uninstall
Serverless: Load command plugin
Serverless: Load command plugin:list
Serverless: Load command plugin
Serverless: Load command plugin:search
Serverless: Load command config
Serverless: Load command config:credentials
Serverless: Load command rollback
Serverless: Load command rollback:function
Serverless: Load command requirements
Serverless: Load command requirements:clean
Serverless: Load command requirements:install
Serverless: Load command requirements:cleanCache
Serverless: Invoke deploy
Serverless: Invoke package
Serverless: Invoke aws:common:validate
Serverless: Invoke aws:common:cleanupTempDir
Serverless: Generated requirements from /Users/josh.kupershmidt/src/company/projsrc/requirements.txt in /Users/josh.kupershmidt/src/company/projsrc/serverless/db_monitoring/.serverless/requirements.txt...
Serverless: Installing requirements from /Users/josh.kupershmidt/src/company/projsrc/serverless/db_monitoring/.serverless/requirements/requirements.txt ...
Serverless: Docker Image: lambci/lambda:build-python3.7
Serverless: Running docker run --rm -v /Users/josh.kupershmidt/src/company/projsrc/serverless/db_monitoring/.serverless/requirements\:/var/task\:z -u 0 lambci/lambda\:build-python3.7 python3.7 -m pip install -t /var/task/ -r /var/task/requirements.txt...
Serverless: Packaging service...
Serverless: Excluding development dependencies...
Serverless: Injecting required Python packages to package...
Serverless: Invoke aws:package:finalize
Serverless: Invoke aws:common:moveArtifactsToPackage
Serverless: Invoke aws:common:validate
Serverless: Invoke aws:deploy:deploy
Serverless: [AWS cloudformation 200 0.625s 0 retries] describeStacks({ StackName: 'Monitoring-Project-Staging-production' })
Serverless: [AWS cloudformation 200 0.501s 0 retries] describeStackResource({ StackName: 'Monitoring-Project-Staging-production',
LogicalResourceId: 'ServerlessDeploymentBucket' })
Serverless: [AWS s3 200 0.49s 0 retries] listObjectsV2({ Bucket:
'monitoring-project-sta-serverlessdeploymentbuck-2eeh2etkg7ax',
Prefix: 'serverless/Monitoring-Project-Staging/production' })
Serverless: [AWS s3 200 0.4s 0 retries] headObject({ Bucket:
'monitoring-project-sta-serverlessdeploymentbuck-2eeh2etkg7ax',
Key:
'serverless/Monitoring-Project-Staging/production/1557161099363-2019-05-06T16:44:59.363Z/Monitoring-Project-Staging.zip' })
Serverless: [AWS s3 200 0.42s 0 retries] headObject({ Bucket:
'monitoring-project-sta-serverlessdeploymentbuck-2eeh2etkg7ax',
Key:
'serverless/Monitoring-Project-Staging/production/1557161099363-2019-05-06T16:44:59.363Z/compiled-cloudformation-template.json' })
Serverless: [AWS sts 200 0.097s 0 retries] getCallerIdentity({})
Serverless: Uploading CloudFormation file to S3...
Serverless: [AWS s3 200 0.641s 0 retries] putObject({ Body:
<Buffer 7b 22 41 57 53 54 65 6d 70 6c 61 74 65 46 6f 72 6d 61 74 56 65 72 73 69 6f 6e 22 3a 22 32 30 31 30 2d 30 39 2d 30 39 22 2c 22 44 65 73 63 72 69 70 74 ... 5019 more bytes>,
Bucket:
'monitoring-project-sta-serverlessdeploymentbuck-2eeh2etkg7ax',
Key:
'serverless/Monitoring-Project-Staging/production/1557176116762-2019-05-06T20:55:16.762Z/compiled-cloudformation-template.json',
ContentType: 'application/json',
Metadata:
{ filesha256: 'XWj/+U2mREiJPvscb+O2D5ZZSfsKYtkAm/db67lp2YM=' } })
Serverless: Uploading artifacts...
Serverless: Uploading service Monitoring-Project-Staging.zip file to S3 (8.71 MB)...
Serverless: [AWS s3 200 0.423s 0 retries] createMultipartUpload({ Bucket:
'monitoring-project-sta-serverlessdeploymentbuck-2eeh2etkg7ax',
Key:
'serverless/Monitoring-Project-Staging/production/1557176116762-2019-05-06T20:55:16.762Z/Monitoring-Project-Staging.zip',
ContentType: 'application/zip',
Metadata:
{ filesha256: 'GK/PwDRJajEj3bCS8tTnD9oIqGs4ZM5hKBuB/4kzAQY=' } })
Serverless: [AWS s3 200 8.925s 0 retries] uploadPart({ Body:
<Buffer 9b a6 00 a7 d1 de 07 40 6e 4b 9f 60 97 19 a9 ad ed d2 c2 a9 05 06 1f 6b ed 6d 0c 97 89 dd 3b 82 c6 0f 7c a8 d4 9e 5b 4f 9c fc 98 39 58 6f e5 0e 05 4e ... 3892761 more bytes>,
ContentLength: 3892811,
PartNumber: 2,
Bucket:
'monitoring-project-sta-serverlessdeploymentbuck-2eeh2etkg7ax',
Key:
'serverless/Monitoring-Project-Staging/production/1557176116762-2019-05-06T20:55:16.762Z/Monitoring-Project-Staging.zip',
UploadId:
'MU5IfdpF9.Wa8yPtcaFLGOcOOPXt1UCI.7lfjKhR_uh9pEsf.9lH6uafwynYLsx5sPfE3U7DFPUaDB6crnc01.E0dEufEprx7LHlTEbHmfeF6b1Bq5tJnt.FxBzVeyIw.yIhM2cv6ZAyxut1YqVXrQ--' })
Serverless: [AWS s3 200 9.557s 0 retries] uploadPart({ Body:
<Buffer 50 4b 03 04 0a 00 00 00 08 00 00 00 21 00 d9 5a e1 f8 01 0e 00 00 ae 21 00 00 12 00 00 00 63 68 65 63 6b 5f 73 65 71 75 65 6e 63 65 73 2e 70 79 e5 5a ... 5242830 more bytes>,
ContentLength: 5242880,
PartNumber: 1,
Bucket:
'monitoring-project-sta-serverlessdeploymentbuck-2eeh2etkg7ax',
Key:
'serverless/Monitoring-Project-Staging/production/1557176116762-2019-05-06T20:55:16.762Z/Monitoring-Project-Staging.zip',
UploadId:
'MU5IfdpF9.Wa8yPtcaFLGOcOOPXt1UCI.7lfjKhR_uh9pEsf.9lH6uafwynYLsx5sPfE3U7DFPUaDB6crnc01.E0dEufEprx7LHlTEbHmfeF6b1Bq5tJnt.FxBzVeyIw.yIhM2cv6ZAyxut1YqVXrQ--' })
Serverless: [AWS s3 200 0.519s 0 retries] completeMultipartUpload({ MultipartUpload:
{ Parts:
[ { ETag: '"6249010f6b1dc64f6b9004e778f6ae2d"', PartNumber: 1 },
{ ETag: '"cf7b2a523978c2d62e9fd4899cc3d525"', PartNumber: 2 },
[length]: 2 ] },
Bucket:
'monitoring-project-sta-serverlessdeploymentbuck-2eeh2etkg7ax',
Key:
'serverless/Monitoring-Project-Staging/production/1557176116762-2019-05-06T20:55:16.762Z/Monitoring-Project-Staging.zip',
UploadId:
'MU5IfdpF9.Wa8yPtcaFLGOcOOPXt1UCI.7lfjKhR_uh9pEsf.9lH6uafwynYLsx5sPfE3U7DFPUaDB6crnc01.E0dEufEprx7LHlTEbHmfeF6b1Bq5tJnt.FxBzVeyIw.yIhM2cv6ZAyxut1YqVXrQ--' })
Serverless: Validating template...
Serverless: [AWS cloudformation 200 0.536s 0 retries] validateTemplate({ TemplateURL:
'https://s3.amazonaws.com/monitoring-project-sta-serverlessdeploymentbuck-2eeh2etkg7ax/serverless/Monitoring-Project-Staging/production/1557176116762-2019-05-06T20:55:16.762Z/compiled-cloudformation-template.json' })
Serverless: Updating Stack...
Serverless: [AWS cloudformation 200 0.8s 0 retries] updateStack({ StackName: 'Monitoring-Project-Staging-production',
Capabilities: [ 'CAPABILITY_IAM', 'CAPABILITY_NAMED_IAM', [length]: 2 ],
Parameters: [ [length]: 0 ],
TemplateURL:
'https://s3.amazonaws.com/monitoring-project-sta-serverlessdeploymentbuck-2eeh2etkg7ax/serverless/Monitoring-Project-Staging/production/1557176116762-2019-05-06T20:55:16.762Z/compiled-cloudformation-template.json',
Tags: [ { Key: 'STAGE', Value: 'production' }, [length]: 1 ] })
Serverless: Checking Stack update progress...
Serverless: [AWS cloudformation 200 0.529s 0 retries] describeStackEvents({ StackName:
'arn:aws:cloudformation:us-west-2:123456789012:stack/Monitoring-Project-Staging-production/49f65140-701e-11e9-a059-0688a7bf983a' })
.....Serverless: [AWS cloudformation 200 0.507s 0 retries] describeStackEvents({ StackName:
'arn:aws:cloudformation:us-west-2:123456789012:stack/Monitoring-Project-Staging-production/49f65140-701e-11e9-a059-0688a7bf983a' })
.....Serverless: [AWS cloudformation 200 0.724s 0 retries] describeStackEvents({ StackName:
'arn:aws:cloudformation:us-west-2:123456789012:stack/Monitoring-Project-Staging-production/49f65140-701e-11e9-a059-0688a7bf983a' })
....
Serverless: Operation failed!
Serverless: View the full error output: https://us-west-2.console.aws.amazon.com/cloudformation/home?region=us-west-2#/stack/detail?stackId=arn%3Aaws%3Acloudformation%3Aus-west-2%3A123456789012%3Astack%2FMonitoring-Project-Staging-production%2F49f65140-701e-11e9-a059-0688a7bf983a
Serverless Error ---------------------------------------
An error occurred: DbDashoverflowDashguardIamRoleLambdaExecution - ARN arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaVPCAccessExecutionRole is not valid. (Service: AmazonIdentityManagement; Status Code: 400; Error Code: InvalidInput; Request ID: 509e570e-7041-11e9-8595-178348580e3a).
Stack Trace --------------------------------------------
ServerlessError: An error occurred: DbDashoverflowDashguardIamRoleLambdaExecution - ARN arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaVPCAccessExecutionRole is not valid. (Service: AmazonIdentityManagement; Status Code: 400; Error Code: InvalidInput; Request ID: 509e570e-7041-11e9-8595-178348580e3a).
at provider.request.then (/usr/local/lib/node_modules/serverless/lib/plugins/aws/lib/monitorStack.js:118:33)
From previous event:
at AwsDeploy.monitorStack (/usr/local/lib/node_modules/serverless/lib/plugins/aws/lib/monitorStack.js:31:12)
at provider.request.then (/usr/local/lib/node_modules/serverless/lib/plugins/aws/lib/updateStack.js:95:30)
From previous event:
at AwsDeploy.update (/usr/local/lib/node_modules/serverless/lib/plugins/aws/lib/updateStack.js:95:8)
From previous event:
at AwsDeploy.BbPromise.bind.then (/usr/local/lib/node_modules/serverless/lib/plugins/aws/lib/updateStack.js:112:12)
From previous event:
at AwsDeploy.updateStack (/usr/local/lib/node_modules/serverless/lib/plugins/aws/lib/updateStack.js:106:8)
From previous event:
at AwsDeploy.BbPromise.bind.then (/usr/local/lib/node_modules/serverless/lib/plugins/aws/deploy/index.js:127:39)
From previous event:
at Object.aws:deploy:deploy:updateStack [as hook] (/usr/local/lib/node_modules/serverless/lib/plugins/aws/deploy/index.js:123:10)
at BbPromise.reduce (/usr/local/lib/node_modules/serverless/lib/classes/PluginManager.js:407:55)
From previous event:
at PluginManager.invoke (/usr/local/lib/node_modules/serverless/lib/classes/PluginManager.js:407:22)
at PluginManager.spawn (/usr/local/lib/node_modules/serverless/lib/classes/PluginManager.js:425:17)
at AwsDeploy.BbPromise.bind.then (/usr/local/lib/node_modules/serverless/lib/plugins/aws/deploy/index.js:93:48)
From previous event:
at Object.deploy:deploy [as hook] (/usr/local/lib/node_modules/serverless/lib/plugins/aws/deploy/index.js:89:10)
at BbPromise.reduce (/usr/local/lib/node_modules/serverless/lib/classes/PluginManager.js:407:55)
From previous event:
at PluginManager.invoke (/usr/local/lib/node_modules/serverless/lib/classes/PluginManager.js:407:22)
at PluginManager.run (/usr/local/lib/node_modules/serverless/lib/classes/PluginManager.js:438:17)
at variables.populateService.then.then (/usr/local/lib/node_modules/serverless/lib/Serverless.js:114:33)
at processImmediate (timers.js:632:19)
at process.topLevelDomainCallback (domain.js:120:23)
From previous event:
at Serverless.run (/usr/local/lib/node_modules/serverless/lib/Serverless.js:101:6)
at serverless.init.then (/usr/local/lib/node_modules/serverless/bin/serverless:43:28)
at /usr/local/lib/node_modules/serverless/node_modules/graceful-fs/graceful-fs.js:111:16
at /usr/local/lib/node_modules/serverless/node_modules/graceful-fs/graceful-fs.js:45:10
at FSReqCallback.args [as oncomplete] (fs.js:147:20)
From previous event:
at initializeErrorReporter.then (/usr/local/lib/node_modules/serverless/bin/serverless:43:6)
at processImmediate (timers.js:632:19)
at process.topLevelDomainCallback (domain.js:120:23)
From previous event:
at /usr/local/lib/node_modules/serverless/bin/serverless:28:46
at Object.<anonymous> (/usr/local/lib/node_modules/serverless/bin/serverless:67:4)
at Module._compile (internal/modules/cjs/loader.js:723:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:734:10)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
at Function.Module._load (internal/modules/cjs/loader.js:552:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:776:12)
at executeUserCode (internal/bootstrap/node.js:342:17)
at startExecution (internal/bootstrap/node.js:276:5)
at startup (internal/bootstrap/node.js:227:5)
at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information -----------------------------
OS: darwin
Node Version: 11.4.0
Serverless Version: 1.38.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment