简体   繁体   中英

AWS EventBridge - Customize s3 event pattern

I have a s3 bucket with EventBridge events enabled and I have the following bucket structure.

s3://bucket/db/table/LOAD00001.csv

I need to create an event pattern that will identify all new files that contains "LOAD" in the filename.

My event pattern looks like:

  {
      "source": ["aws.s3"],
      "detail-type": ["Object Created"],
      "detail": {
        "bucket": {
          "name": [{
            "suffix": "-landing"
          }]
        },
        "object": {
          "key": ["*LOAD*"]
        }
      }
    }

I have tried some combinations using prefix and sufix but no success yet.

Event content filtering does not support wildcard pattern matching.

If prefix or suffix matching does not work, consider overfetching and using the event target to screen out unwanted events.

"key": [{"prefix": "LOAD"}]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM