Skip to content

How to define transformation logic for multiple datasets #267

Answered by cnfait
kangsoon-dev asked this question in Q&A
Discussion options

You must be logged in to vote

Pattern 2

Define a single dataset (unlike pattern 1), and modify sdlf-stageA to update the logic deciding which Lambda to run. If you look at the preupdate-metadata lambda, it fetches the Lambda ARN from DynamoDB and put it in the outputs for use by the next step of the Step Functions.

What you can do is, provide multiple Lambda ARN when defining the dataset:

    rExample:
        Type: awslabs::sdlf::dataset::MODULE
        Properties:
            pPipelineReference: !Ref pPipelineReference
            pTeamName: engineering
            pDatasetName: example
            pPipelineDetails: !Sub >-
                {
                    "main": {
                        "A": {
              …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@cnfait
Comment options

@kangsoon-dev
Comment options

Answer selected by kangsoon-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants