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.

asked 3 years ago171 views
1 Answer
0

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

answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions