David Tanner 68ef4ceab7 Move CF stack configuration to one place.
The stack is now set up in one place.
The S3 bucket isn't created on create if a bucket is already specified.
Working on configurability for the developer.
There is still the possibility of failing to deploy the stack
if the iamRoleArn is set, and a deploymentBucket is specified
2016-09-28 08:27:09 -06:00
..

Compile Functions

This plugins compiles the functions in serverless.yml to corresponding lambda CloudFormation resources.

How it works

Compile Functions hooks into the deploy:compileFunctions lifecycle.

It loops over all functions which are defined in serverless.yml.

Inside the function loop it creates corresponding CloudFormation lambda function resources based on the settings (e.g. function name property or service defaults) which are provided in the serverless.yml file.

The function will be called <serviceName>-<stage>-<functionName> by default but you can specify an alternative name with the help of the functions name property.

The functions MemorySize is set to 1024 and Timeout to 6. You can overwrite those defaults by setting corresponding entries in the services provider or function property.

At the end all CloudFormation function resources are merged inside the compiled CloudFormation template.