Does S3 Filtering allow wildcards for prefixes in SQS event notifications

0

I have a central logging bucket which has VPC Flow Logs, CloudTrail, Config logs from all the accounts in an organization. I have to setup Event notifications to send messages to various SQS queues based on the log type,

I am not able to make the below notification configuration work, is there an alternative?

NotificationConfiguration:
    QueueConfigurations:
      - Event: s3:ObjectCreated:Put
        Queue: !GetAtt MyQueue.Arn
        Filter:
          S3Key:
            Rules:
            - Name: prefix
              Value: AWSLogs/*/CloudTrail/
1 個回答
0
已接受的答案

Because the wildcard asterisk character (*) is a valid character that can be used in object key names, Amazon S3 literally interprets the asterisk as a prefix or suffix filter. You can't use the wildcard character to represent multiple characters for the prefix or suffix object key name filter. Instead, you must configure multiple event notifications to match the object key names.

AWS
專家
已回答 4 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南