I have a lambda function that passes the input values to step function. Below is the input that Step function is receiving which is good. My step function is suppose to write these fields to Dynamo table. I am having issues with ENTITIES in step function. I simply want to take entity array as it from input and put in dynamo table. I have tried using items path & array parameter but that failed. Any help will be appreciated. // Input to Step function
{
"CLIENT_ID": "fa1188",
"CLIENT_NAME": "Country Village 1188",
"SOURCE_IDENTIFIER": "abc-123-Country_Village 1188",
"ENTITIES": {
"L": [
{
"S": "Test1"
},
{
"S": "Test8"
},
{
"S": "Test8"
}
]
},
"CREATED_TIMESTAMP": "1597436891604"
}
// Step function
{
"Comment": "PutItem into DynamoDB",
"StartAt": "1st",
"States": {
"1st": {
"Type": "Task",
"Resource": "arn:aws:states:::dynamodb:putItem",
"Parameters": {
"TableName": "CLIENTS",
"Item": {
"CLIENT_ID": {
"S.$": "$.CLIENT_ID"
},
"CLIENT_NAME": {
"S.$": "$.CLIENT_NAME"
},
"SOURCE_IDENTIFIER": {
"S.$": "$.SOURCE_IDENTIFIER"
},
"CREATED_TIMESTAMP": {
"S.$": "$.CREATED_TIMESTAMP"
},
**"ENTITIES": {
"S.$":"$.ENTITIES.L"
}**
}
},
"End":true,
"ResultPath":"$.DynamoDB"
}
}
}
I am able to store all other value saved other than entity.I want Entity column in Dynamo Table to store value like below [{"S" : "Test1"}, {"S":"Test8"},{"S" : "Test8"}]
