2回答
- 新しい順
- 投票が多い順
- コメントが多い順
1
Update: As Anentropic pointed out, the CDK Construct has been released: https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions.DistributedMap.html
Hi Umut,
as of today, Distributed Map isn't supported by the CDK yet (https://github.com/aws/aws-cdk/issues/23216). 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.
0
This exists now: https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions.DistributedMap.html
回答済み 1ヶ月前
関連するコンテンツ
- AWS公式更新しました 1年前
Is there any progress on getting DistributedMap support available directly in the CDK, as an L2 construct or otherwise?