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.

feita há 3 anos175 visualizações
1 Resposta
0

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

respondido há 3 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas