CDK Step Function Map state working with "Distributed Mode"


Hi we are from in dcs_core team,

We are using cdk to deploy state machine and we are using "Map" state with "inline mode", and we are currently required to use "Distributed mode" due to "inline mode" limitations, but we could not find any documentation or examples related with it does latest cdk version supports working "Map with Distributed mode" ?

Can you please help ? Thank you.

2 Antworten
Akzeptierte Antwort

Update: As Anentropic pointed out, the CDK Construct has been released:

Hi Umut,

as of today, Distributed Map isn't supported by the CDK yet ( However, you can always use the CustomState construct to drop in any ASL that’s not natively implemented in the L2 constructs.

For example:

const custom = new sfn.CustomState(this, 'distributed map state', {
  stateJson: { 
    "Type": 'Map',
    "ItemReader": {
      "ReaderConfig": {
        "InputType": "CSV",
        "CSVHeaderLocation": "FIRST_ROW"
      "Resource": "arn:aws:states:::s3:getObject",
      "Parameters": {
    "ItemProcessor": {
      "ProcessorConfig": {
        "Mode": "DISTRIBUTED",
        "ExecutionType": "EXPRESS"
      "StartAt": "...",
      "States": {

Please upvote/accept this answer if you found it helpful.

profile pictureAWS
beantwortet vor einem Jahr
  • Is there any progress on getting DistributedMap support available directly in the CDK, as an L2 construct or otherwise?

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen