mix_erllambda v1.1.0 mix erllambda.release

Build a release package suitable for AWS Lambda deployment.

This task heavily utilises distillery to build application. Once release is built, task applies additional overlays that are necessary to bootstrap release as AWS Lambda environment. At the end it creates a zip package suitable for AWS lambda deployment with a provided environment.

Usage

Follow distillery release usage examples to init release for the project:

# init release
mix distillery.init
mkdir config
echo "use Mix.Config" > config/config.exs

To create package run erllambda.release with MIX_ENV set to the Mix environment you are targeting:

# Builds a release package with MIX_ENV=dev (the default)
mix erllambda.release

# Builds a release package with MIX_ENV=prod
MIX_ENV=prod mix erllambda.release

# Builds a release package for a specific release environment
MIX_ENV=prod mix erllambda.release --env=dev

Details

Task is built on top of distillery release and has the same command line interface. Please note that some of use cases (such as release upgrades) are not supported as they don't make sense in AWS lambda universe.

For full list of available options please read release documentation:

# mix help release

Link to this section Summary

Functions

A task needs to implement run which receives a list of command line args.

Link to this section Functions

A task needs to implement run which receives a list of command line args.

Callback implementation for Mix.Task.run/1.