title: How to trigger Lambda only one time for multipart upload S3 triggers?
body: <p>I have a AWS Lambda function that:</p>
  
  <ol>
  <li>reacts to an <code>S3 ObjectCreated</code> trigger</li>
  <li>ssh into an ec2 instance and</li>
  <li>runs a python script </li>
  </ol>
  
  <p>This python script will then run EMR to process all these S3 part-files that were just created. (Yes, the files must be processed jointly.)</p>
  
  <p>However, the part-files (<code>file_part_0000</code>, <code>file_part_0001</code>, <code>file_part_0002</code>, etc.) are created as multipart uploads.</p>
  
  <pre><code>Lambda Event: {..., "eventName": "ObjectCreated:CompleteMultipartUpload", ...}
  </code></pre>
  
  <p>It's my understanding that this trigger would force Lambda to ssh and run the python script as many time as there are part files. I only want Lambda to ssh and run the script <strong>once</strong>.</p>
  
  <p><strong>Is there any way to have the Lambda be triggered <em>once</em> for each "series" of multipart uploads?</strong></p>