Cannot directly set up BatchGetItem step inside a State Machine

0

I had been struggling to add a BatchGetItem step inside an Express State Machine in AWS Step Functions.

I followed the request syntax inside this document (https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_BatchGetItem.html) but when I start modifying the JSON inside API parameters, Step Function prompts two error messages, saying that two parameters' values are mandatory, which doesn't match documentation for BatchGetItem. These errors show up as soon as I try to replace the values of Key inside the API parameters

After struggling for a while, and because the prompted errors didn't make sense, I found a trick to bypass the error, which is also a way to reproduce this issue

  • Add the BatchGetItem
  • Try to modify the value of Key, get two error messages ("prompts")
  • Quit modifying the value of Key and just leave it as it is. Save your state machine
  • Click on edit the workflow, and try again to modify the value of Key.
  • No errors will show up this time.

I'm wondering if by following the steps above I'm doing something wrong, or if this is an actual bug?

  • If you can share the code of the step functions part, it will be easier to understand what is the issue. The internal language of the step functions flows can be confusing.

답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠