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 Antwort
0
Akzeptierte Antwort

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
EXPERTE
beantwortet vor 4 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen