Skip to content

v2.6.1 - Major Update

Compare
Choose a tag to compare
@vibou vibou released this 20 Oct 10:54
· 1 commit to serverless2.0 since this release
973b50a

🐞 Bugs

  • Fixes issue when the next step is given to the Map item (the object context was not created at this time)
  • Wait for all map results before going to next step

🎉 Feature

  • Support for Map.MaxConcurrency parameter
  • Support for every lambda runtime (python, nodejs, ...)

🧪 Tests

  • Tested the with the following workflow
stepFunctions:
  stateMachines:
    exportFile:
      definition:
        Comment: 'Export File'
        StartAt: Producer
        States:
          Producer:
            Type: Task
            Resource: arn:aws:lambda:eu-west-1:123456789:function:producer
            ResultPath: '$.producer'
            Next: Mapper

          Mapper:
            Type: Map
            Next: Reducer
            ItemsPath: '$.requests'
            Parameters:
              item.$: '$$.Map.Item.Value'

            MaxConcurrency: 5
            ResultPath: '$.mapper'
            Iterator:
              StartAt: MappingFunction
              States:
                MappingFunction:
                  Type: Task
                  Resource: arn:aws:lambda:eu-west-1:123456789:function:mapper
                  End: true

          Reducer:
            Type: Task
            Resource: arn:aws:lambda:eu-west-1:123456789:function:reducer
            ResultPath: '$.reducer'
            End: true