Skip to content

sdlf-stage-lambda (sdlf-stageA)

Note

sdlf-stage-lambda is defined in the sdlf-stageA folder of the SDLF repository.

Infrastructure

SDLF Stage Lambda

Run a Lambda function.

Usage

CloudFormation with sdlf-cicd

Read the official SDLF workshop for an end-to-end deployment example.

rMainA:
    Type: awslabs::sdlf::stageA::MODULE
    Properties:
        pPipelineReference: !Ref pPipelineReference
        pStageName: A
        pPipeline: main
        pTeamName: iot
        pTriggerType: event
        pEventPattern: >-
            {
                "source": ["aws.s3"],
                "detail-type": ["Object Created"],
                "detail": {
                    "bucket": {
                        "name": ["{{resolve:ssm:/SDLF2/S3/RawBucket}}"]
                    },
                    "object": {
                        "key": [{ "prefix": "iot/legislators/" }]
                    }
                }
            }
        pEnableTracing: false

Interface

Interfacing with other modules is done through SSM Parameters. sdlf-stage-lambda publishes the following parameters:

SSM Parameter Description Comment
/SDLF/Lambda/{team}/{pipeline}{stage}RoutingLambda Routing Lambda
/SDLF/SM/{team}/{pipeline}{stage}SM Step Functions