Getting "Killed" after "Excluding development dependencies"


#1

This is all I getting when I try to deploy. Any ideas where I can look for the reason of this? Is a EC2 with Ubuntu.

serverless deploy

Serverless: Packaging service…
Serverless: Excluding development dependencies…
Killed


#2

I’ve had this happen before.

Check the formatting/whitespace of the yaml.

I has stuff incorrectly nested under the provider key and it was the root cause.


#3

it is a very first and basic demo (hello-world). just in case, i re-indent the whole serverless.yml file but it still doesnt help

service: serverless-hello-world

provider:
name: aws
runtime: nodejs6.10

functions:
helloWorld:
handler: handler.helloWorld
events:
- http:
path: hello-world
method: get
cors: true