DynamoDB in SFN -> Why does it request an ITEM value when it clearly shouldn't
0
I'm trying to push a DynamoDB record through SFN while setting up a conditional expression but for some reason it requests an "ITEM" field.
I don't want to push an ITEM. I want to push a conditional expression.
According to the API Docs, it should work.
Here's my code:
{
"StartAt": "MyStep",
"States": {
"MyStep": {
"Type": "Task",
"Resource": "arn:aws:states:::dynamodb:putItem",
"Parameters": {
"TableName.$": "$.table_name",
"Key": {
"test_id_path_method_executor_id": {"S.$": "$.update_key.test_id_path_method_executor_id"},
"result_timestamp": {"S.$": "$.update_key.result_timestamp"}
},
"ConditionExpression": "#max_db < :max_values",
"ExpressionAttributeValues": {
":max_values": {"N.$": "$.result_value"}
},
"ExpressionAttributeNames": {
"#max_db": "max"
},
"UpdateExpression": "SET #max_db = :max_values"
},
"Next": "EndSuccess"
},
"EndSuccess": {
"Type":"Succeed"
}
}
}
The error I get is this:
There are Amazon States Language errors in your state machine definition. Fix the errors to continue.
The field 'Item' is required but was missing (at /States/MyStep/Parameters)
Am I doing something wrong?
Or is it an AWS problem and I should create a Support ticket instead?
Thanks!
asked a month ago16 views
1 Answers
Relevant questions
DynamoDB UpdateItem
Accepted AnswerFeature request: Support for DynamoDB Transactions in AppSync
Accepted Answerasked 3 years agoDynamoDB Item Insert Limit
asked 3 months agoDynamoDB in SFN -> Why does it request an ITEM value when it clearly shouldn't
Accepted Answerasked a month agoAppSync subscription stopped working after creating the 6th DynamoDB item
asked a year agoSample create dynamodb table CLI script for relational data
asked 3 months agoDynamoDB Functionality Queries
asked a month agoDynamoDB Upsert with condition on numeric attribute
asked 5 months agoNextToken from ExecuteStatement returns error "NextToken does not match request" in Lambda function
asked 2 months agoDo I need to mitigate possible timing attacks when querying DynamoDB?
Accepted Answerasked 6 months ago