# terraform-lambda-assets-qa

## Proxy lambda listing
```python
import os
import json

import boto3


def handler(event, context):
    """

    Args:
        event (dict): Input event (message from SNS)
        context (dict): Environment context

    Returns:
        dict: Execution starting results
    """
    sfn_client = boto3.client('stepfunctions')
    response = sfn_client.start_execution(
        stateMachineArn=os.environ.get('STATEMACHINE_ARN'),
        input=json.dumps(event)
    )
    return {
        "statusCode": 200,
        "executionArn": response['executionArn']
    }
```