title: How many records can be in S3 put() event lambda trigger?
body: <p>I need to have some lambda function which got this flow:</p>
  <blockquote>
  <p>Triggered S3 put file event -&gt; lambda function -&gt; insert row to DynamoDB</p>
  </blockquote>
  <p>When I'm creating a test using AWS from the lambda screen, I got this example with only 1 record in the <code>Records</code> list:</p>
  <pre><code>{
    &quot;Records&quot;: [    //  &lt;&lt;&lt;----------------only 1 element 
      {
        &quot;eventVersion&quot;: &quot;2.0&quot;,
        &quot;eventTime&quot;: &quot;1970-01-01T00:00:00.000Z&quot;,
        &quot;requestParameters&quot;: {
          &quot;sourceIPAddress&quot;: &quot;127.0.0.1&quot;
        },
        &quot;s3&quot;: {
          &quot;configurationId&quot;: &quot;testConfigRule&quot;,
          &quot;object&quot;: {
            &quot;eTag&quot;: &quot;0123456789abcdef0123456789abcdef&quot;,
            &quot;sequencer&quot;: &quot;0A1B2C3D4E5F678901&quot;,
            &quot;key&quot;: &quot;HappyFace.jpg&quot;,
            &quot;size&quot;: 1024
          },
          &quot;bucket&quot;: {
            &quot;arn&quot;: &quot;arn:aws:s3:::mybucket&quot;,
            &quot;name&quot;: &quot;roeyg-oregon-s3-bucket&quot;,
            &quot;ownerIdentity&quot;: {
              &quot;principalId&quot;: &quot;EXAMPLE&quot;
            }
          },
          &quot;s3SchemaVersion&quot;: &quot;1.0&quot;
        },
        &quot;responseElements&quot;: {
          &quot;x-amz-id-2&quot;: &quot;EXAMPLE123/5678abcdefghijklambdaisawesome/mnopqrstuvwxyzABCDEFGH&quot;,
          &quot;x-amz-request-id&quot;: &quot;EXAMPLE123456789&quot;
        },
        &quot;awsRegion&quot;: &quot;us-east-1&quot;,
        &quot;eventName&quot;: &quot;ObjectCreated:Put&quot;,
        &quot;userIdentity&quot;: {
          &quot;principalId&quot;: &quot;EXAMPLE&quot;
        },
        &quot;eventSource&quot;: &quot;aws:s3&quot;
      }
    ]
  }
  </code></pre>
  <p>I tried several ways to see if it's possible to get a list with more than one element in this list, like using CLI or uploading several files together or even a whole folder, in all of these scenarios I got one item per one event.</p>
  <p>My question is to know if there can be a scenario in which I can get more than one file at one event?</p>
  <p>By that, I would change my code to have a loop and not a reference to the first element like AWS suggested.</p>