Single Lambda

Orkestra can be used to simplify the process of deployment lambdas without necessarily composing them as state machines.

1
2
3
4
5
6
from orkestra import compose


@compose
def handler(event, context):
    return "hello, world"
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
from aws_cdk import core as cdk

from examples.single_lambda import handler


class SingleLambda(cdk.Stack):
    """Single lambda deployment example."""

    def __init__(self, scope, id, **kwargs):

        super().__init__(scope, id, **kwargs)

        handler.aws_lambda(self)