title: Is it possible to iterate through a DynamoDB table within a step function's map state?
body: <p>Just what the title says, basically. I have read through the documentation:</p>
  <p><a href="https://docs.aws.amazon.com/step-functions/latest/dg/connect-ddb.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/step-functions/latest/dg/connect-ddb.html</a></p>
  <p>This describes how to get a single item of information out of a DynamoDB table from a step function. What I would like to do is iterate through the entire table and start execution of another state machine for each item. Each new state machine would have an individual item as input. I have attempted the following code, which unfortunately is not functional:</p>
  <pre><code>{
    &quot;StartAt&quot;: &quot;OuterFunction&quot;,
    &quot;States&quot;: {
      &quot;OuterFunction&quot;: {
        &quot;Type&quot;: &quot;Map&quot;,
        &quot;Iterator&quot;: {
          &quot;StartAt&quot;: &quot;InnerFunction&quot;,
          &quot;States&quot;: {
            &quot;InnerFunction&quot;: {
              &quot;Type&quot;: &quot;Task&quot;,
              &quot;Resource&quot;: &quot;arn:aws:states:::dynamodb:getItem.sync&quot;,
              &quot;Parameters&quot;: {
                &quot;StateMachineArn&quot;:&quot;other-state-machine-arn&quot;,
                &quot;TableName&quot;: &quot;TestTable&quot;
              },
              &quot;End&quot;: true
            }
          }
        },
        &quot;End&quot;: true
      }
    }
  }
  </code></pre>
  <p>Is it actually possible to iterate through a DynamoDB table in this way?</p>