-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SNS MessageAttributes are optional #208
SNS MessageAttributes are optional #208
Conversation
Can one of the admins verify this patch? |
5 similar comments
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
@swift-server-bot test this please |
seems reasonable to me. @DwayneCoussement can you elaborate on
|
Sure thing; so imagine having following simplified setup, this is just as a reference, so sorry if there are some mistakes in there:
Notice that if you check the contents of the SQS records, some kind of transform happened on the original SNS message. MessageAttributes in the above example, these will not be set, so this is the initial fix.
|
I assume AWS may be doing some transformation. cc @bmoffatt |
@swift-server-bot test this please |
Make MessageAttributes optional on SNS.Message
Motivation:
When testing the following situation:
SNS Topic => SQS Queue => Lambda
Notice that you'll see that SQS will have an SNS Message in the body without MessageAttributes
Note that after further research I also noticed that this is not sufficient:
Modifications:
Result:
MessageAttributes will be optional, and you'll be able to parse an SNS Message in the situation described in the motivation