-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Add support in aws-s3 input for s3 notification from SNS to SQS #28800
Conversation
This pull request does not have a backport label. Could you fix it @kaiyan-sheng? 🙏
NOTE: |
Pinging @elastic/integrations (Team:Integrations) |
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
💚 Flaky test reportTests succeeded. 🤖 GitHub commentsTo re-run your PR in the CI, just comment with:
|
👍 could you add an integration test as well? |
@aspacca integration test added 🙂 |
@@ -440,8 +442,74 @@ func TestPaginatorListPrefix(t *testing.T) { | |||
} | |||
|
|||
func TestGetProviderFromDomain(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I realised this should not be in input_integration_test.go
:)
* Add support in aws-s3 input for s3 notification from SNS to SQS * add integration test for sns * fix integration test * add changelog * add documentation (cherry picked from commit 2fe1842)
* Add support in aws-s3 input for s3 notification from SNS to SQS * add integration test for sns * fix integration test * add changelog * add documentation
…) (#28910) Co-authored-by: kaiyan-sheng <kaiyan.sheng@elastic.co>
What does this PR do?
This PR is to add support for S3 notification from SNS to SQS for
aws-s3
input. When parsing the SQS message body, if there is atopicArn
field that exists, then it means the notification message is from SNS to SQS.Quoting from @christianherweg0807 from #25492:
![Screen Shot 2021-11-03 at 4 06 12 PM](https://user-images.githubusercontent.com/14081635/140199838-04654e27-13fd-49fc-a26d-529db9ed0391.png)
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.How to test this PR locally
arn:aws:sqs:us-east-1:428152502467:test-fb-ks
is setup with SNS to SQS for testing.Related issues