getBucketNotificationConfiguration not returning filters

0

Hi,

We put the topic configuration using 'putBucketNotificationConfiguration' but when we tried to get it back with getBucketNotificationConfiguration
It returns everything but the Filters and there are filters, I can see those on the web and when creating the event we pass the topic config with the filters.

Here is what we send to the putBucketNotificationConfiguration as topic configuration
{
"Id": "my-id",
"TopicArn": "arn:aws:sns:eu-west-1:account-number:my-id",
"Events": [
"s3:ObjectCreated:*"
],
"Filter": {
"Key": {
"FilterRules": [
{
"Name": "prefix",
"Value": "data-lake/scada_mdb"
}
]
}
}
}

And this is what we get back

{
"Id": "my-id",
"Events": [
"s3:ObjectCreated:"
],
"Event": "s3:ObjectCreated:
",
"Topic": "arn:aws:sns:eu-west-1:account-number:my-id"
}

As you can see the filters are missing and for us this is the most crucial part. Any reason those are not coming back?

We know for sure that the bucket is configured correctly because we can see the notification working as expected but we need to be able to get the right configuration back.

posta 3 anni fa175 visualizzazioni
1 Risposta
0

My bad, I was running 'getBucketNotification' instead of 'getBucketNotificationConfiguration' but as I was promisifying I didn't notice >.<

con risposta 3 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande