Skip to content

Instantly share code, notes, and snippets.

@gaeeyo
Created June 2, 2022 08:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gaeeyo/7db51a3ffb00eea0640c19c1614324e2 to your computer and use it in GitHub Desktop.
Save gaeeyo/7db51a3ffb00eea0640c19c1614324e2 to your computer and use it in GitHub Desktop.
[zappa] event source に s3 を使うとき prefix と suffix の filter を設定するときの書き方
{
"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