-
Notifications
You must be signed in to change notification settings - Fork 15
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 : alerts module #95
Conversation
ocdbytes
commented
Aug 22, 2024
- Added alerts module.
- Added SNS implementation.
- Updated tests.
… into feat/alerts-module
let config = aws_config::from_env().region(Region::new(sns_region)).load().await; | ||
AWSSNS { client: Client::new(&config) } |
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 was comparing this to the S3 config and I noticed a few things
- We can use the same config built here in S3 as well (we will need to change
Client::from_conf
to Client::new inside s3) - We should probably move AWS config creation into config.rs and pass it to s3 and sns
- s3
new
doesn't need to async (and even SNS once can be made non sync after that) - S3 config only needs to have bucket name after this
- SNS should also have a config that has topic arn which then gets loaded into the SNS struct (similar to S3)
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.
we can make a new issue for this idts this is related to this PR and will cause unnecessary confusion amongst the reviewers.
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.
resolved in #98
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.
lgtm
* feat : alerts module init * feat : added alerts in jobs/mod.rs * feat : updated messages * feat : updated tests with alerts module mock * changelog : update * feat : added additional alerts * feat : added test for alerts and added logs at queue level * refactor : removed redundant alerts * feat : updated workflow * feat : resolved comments * feat : added all alerts for queues * feat : updated code * remove queue url const * feat : tests and lint fixes --------- Co-authored-by: apoorvsadana <95699312+apoorvsadana@users.noreply.github.com>