- Newest
- Most votes
- Most comments
Hi there,
Having a look at your data structure:
Item:
Id.$: $.Id
DealerData.$: States.Format('{}', $)
The reason why you could be facing the issue ""The field "Id" is not supported by Step Functions" is that the "Id" isn't in a string format or of a data type that is expected as per [1] [2]. I tested a similar setup in my test env and I was able to used "$.id" using the below snippet:
"DynamoDB PutItem": {
"Type": "Task",
"Resource": "arn:aws:states:::dynamodb:putItem",
"Parameters": {
"TableName": "stepfunctionreplication",
"Item": {
"Id": {
"S.$": "$.Id",
"S.$": "States.Format('{}', $.DealerData)"
}
}
},
"End": true
}
However, we would like to understand more about the output coming from "APIGatewayInvokeGetDealers" hence I kindly ask that you please please open a support case with AWS using the following link under the Step Functions service so we can troubleshoot further. [3]
References:
[1] https://docs.aws.amazon.com/step-functions/latest/dg/connect-ddb.html
[2] https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_PutItem.html
[3] https://support.console.aws.amazon.com/support/home#/case/create
Relevant content
- asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago