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.

preguntada hace 3 años175 visualizaciones
1 Respuesta
0

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

respondido hace 3 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas