Skip to content
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

Merged
merged 5 commits into from
Jan 8, 2024

Conversation

atorrescogollo
Copy link
Contributor

Based on the AWS provider docs:

S3 Buckets only support a single notification configuration. Declaring multiple aws_s3_bucket_notification resources to the same S3 Bucket will cause a perpetual difference in configuration.

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.

@atorrescogollo
Copy link
Contributor Author

@baolsen I just updated to PR to pass pre-commit checks

@baolsen
Copy link
Contributor

baolsen commented Jan 5, 2024

@atorrescogollo thanks for the contribution.
I'll get the tests to run, it is an unrelated issue

@baolsen
Copy link
Contributor

baolsen commented Jan 5, 2024

@atorrescogollo I think it should work now, please push an empty commit.

git commit --allow-empty -m "empty"

@baolsen
Copy link
Contributor

baolsen commented Jan 5, 2024

@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]

@baolsen baolsen self-assigned this Jan 5, 2024
@atorrescogollo
Copy link
Contributor Author

Hi @baolsen , I already merged from upstream main. Can you approve it to run the tests again?

@baolsen
Copy link
Contributor

baolsen commented Jan 8, 2024

Thanks @atorrescogollo for your patience.

I'm not sure why it's still giving an issue.
Definitely your changes have nothing to do with it.

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.

@baolsen baolsen merged commit 2ec4c5d into cloudandthings:main Jan 8, 2024
13 of 14 checks passed
@baolsen
Copy link
Contributor

baolsen commented Jan 8, 2024

@atorrescogollo

The tests ran through fine. Thanks again for the contribution!
Released with v5.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants