Not supported distributed map InputTypes
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 807
- Avg merge
- 10h 12m
- Merged PRs (30d)
- 7
Description
## Problem
Workflow Studio not in sync with Step function service
## Steps to reproduce the issue
* Install the AWS Toolkit VSCode plugin
* Create a test.asl.json file
* Paste the following code definition for the step function:
```
{
"Comment": "A description of my state machine",
"StartAt": "Map",
"States": {
"Map": {
"Type": "Map",
"ItemProcessor": {
"ProcessorConfig": {
"Mode": "DISTRIBUTED",
"ExecutionType": "STANDARD"
},
"StartAt": "Lambda Invoke",
"States": {
"Lambda Invoke": {
"Type": "Task",
"Resource": "arn:aws:states:::lambda:invoke",
"Output": "{% $states.result.Payload %}",
"Arguments": {
"FunctionName": "",
"Payload": "{% $states.input %}"
},
"Retry": [
{
"ErrorEquals": [
"Lambda.ServiceException",
"Lambda.AWSLambdaException",
"Lambda.SdkClientException",
"Lambda.TooManyRequestsException"
],
"IntervalSeconds": 1,
"MaxAttempts": 3,
"BackoffRate": 2,
"JitterStrategy": "FULL"
}
],
"End": true
}
}
},
"End": true,
"Label": "Map",
"MaxConcurrency": 1000,
"ItemBatcher": {},
"ItemReader": {
"Resource": "arn:aws:states:::s3:getObject",
"ReaderConfig": {
"InputType": "JSONL"
}
}
}
},
"QueryLanguage": "JSONata"
}
```
Workflow Studio will complain that
```
"InputType": "JSONL"
```
is not possible whereas this is possible in the Step Functions Service in the cloud.
## Expected behavior
Support the InputTypes of a distributed map that are supported in the cloud
## System details (run `AWS: About` and/or `Amazon Q: About`)
- OS: MacOs 15.6.1
- Visual Studio Code version: 1.104.0
- AWS Toolkit version: 3.74.0
Contributor guide
Research direction
Reproduce the validation error in Workflow Studio by opening test.asl.json in the AWS Toolkit VSCode plugin with the distributed Map definition shown. Trace where the ItemReader ReaderConfig InputType value is validated, then confirm that JSONL is accepted as a supported cloud Step Functions input type.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, typescript, vscode
- Domain
- cloud, devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100