title: Wildcard-like filtering for S3 put events using Serverless
body: <p>Here's a snippet of my YAML file:</p>
  
  <pre><code>functions:
    users:
      handler: incoming.handler
      events:
        - s3:
            bucket: mybucket
            event: s3:ObjectCreated:*
            rules:
              - prefix: incoming/
              - suffix: .zip
  </code></pre>
  
  <p>This will match for objects created named <code>incoming/*.zip</code>.</p>
  
  <p>I want to add another key with date time for easy partitioning using Athena. So the full "path" in S3 will be something like this:</p>
  
  <pre><code>incoming/date=&lt;timestamp&gt;/&lt;filename&gt;.zip
  </code></pre>
  
  <p>Using the rules defined above do not seem to match with the result that the function does not fire.</p>
  
  <p>How do I match using this technique?</p>