Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add on Docs: event_source from S3 with key_filters #1181

Open
ebertti opened this issue Oct 17, 2017 · 3 comments
Open

Add on Docs: event_source from S3 with key_filters #1181

ebertti opened this issue Oct 17, 2017 · 3 comments

Comments

@ebertti
Copy link

ebertti commented Oct 17, 2017

Something like this:

    {
        "function": "module.my_function",
        "event_source": {
          "arn":  "arn:aws:s3:::my-bucket",
          "key_filters": [
            {
              "type": "prefix",
              "value": "my-prefix"
            },
            {
              "type": "sufix",
              "value": ".jpg"
            }
          ],
          "events": [
            "s3:ObjectCreated:*"
          ]
        }
      }
@Miserlou
Copy link
Owner

PR!

@ebertti
Copy link
Author

ebertti commented Oct 17, 2017

#1183

@pradmaddi
Copy link

pradmaddi commented Jul 11, 2020

There is a typo in the word suffix. Here is the corrected version,

{
        "function": "module.my_function",
        "event_source": {
          "arn":  "arn:aws:s3:::my-bucket",
          "key_filters": [
            {
              "type": "prefix",
              "value": "my-prefix"
            },
            {
              "type": "suffix",
              "value": ".jpg"
            }
          ],
          "events": [
            "s3:ObjectCreated:*"
          ]
        }
      }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants