Created
June 2, 2022 08:34
-
-
Save gaeeyo/7db51a3ffb00eea0640c19c1614324e2 to your computer and use it in GitHub Desktop.
[zappa] event source に s3 を使うとき prefix と suffix の filter を設定するときの書き方
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"dev": { | |
"app_function": "your_module.app", | |
"events": [ | |
{ | |
"function": "your_module.your_function", | |
"event_source": { | |
"arn": "arn:aws:s3:::hoge-bucket", | |
"events": [ | |
"s3:ObjectCreated:*" | |
], | |
"key_filters": [ | |
{ | |
"type": "suffix", | |
"value": ".txt" | |
}, | |
{ | |
"type": "prefix", | |
"value": "memo-" | |
} | |
] | |
} | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment