-
Notifications
You must be signed in to change notification settings - Fork 21
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
feat: Allow using a topic from outside of the module #77
Conversation
@baolsen I just updated to PR to pass pre-commit checks |
@atorrescogollo thanks for the contribution. |
@atorrescogollo I think it should work now, please push an empty commit.
|
@atorrescogollo I'm not yet certain why the test step isn't working. On another PR I merged a few min ago it ran through fine o_O I've updated the aws-actions/configure-aws-credentials to v4, seems there were some related fixes a few months ago. Please merge one more time [Merge branch 'cloudandthings:main' into main] |
Hi @baolsen , I already merged from upstream main. Can you approve it to run the tests again? |
Thanks @atorrescogollo for your patience. I'm not sure why it's still giving an issue. I'm going to merge this and then I'll create a dummy PR to run the tests. Once that's done I'll cut a release. |
The tests ran through fine. Thanks again for the contribution! |
Based on the AWS provider docs:
With the current code, since it creates both the topic and the notification, you can't listen to CloudTrail events through the bucket from another topic/sqs/lambda/... that is not the clickops-notifier.
With the new code, the module allows you to subscribe to a topic that is already created if you set the
cloudtrail_bucket_notifications_sns_arn
variable. That way, it doesn't block others from listening to S3 events.