-
Notifications
You must be signed in to change notification settings - Fork 334
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
Global Alert Firehose #468
Conversation
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 only have one comment regarding TF code.
- For changes in
manage.py
, I don't think it is necessary. I think you are trying to makemanage.py
shorter (number of lines). But I would prefer original format, breaking one line to multiple lines to have better readability. What you think?
But generally, LGTM.
@@ -234,7 +234,7 @@ data "aws_iam_policy_document" "alert_processor_firehose" { | |||
] | |||
|
|||
resources = [ | |||
"${aws_kinesis_firehose_delivery_stream.stream_alerts.arn}", | |||
"arn:aws:firehose:${var.region}:${var.account_id}:deliverystream/${var.prefix}_streamalert_alert_delivery", |
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.
Any reason to use full arn of firehose delivery stream, instead of ${aws_kinesis_firehose_delivery_stream.stream_alerts.arn}
?
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.
That resource isn't in this module, so that interpolation isn't possible. I'd have to pass it in as a variable to this module instead, which I can do!
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.
You are right. Thanks for the explanation.
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'm actually going to leave it, since we do the same thing for Athena data streams
@chunyong-lin we are moving towards using |
to: @chunyong-lin
cc: @airbnb/streamalert-maintainers
size: medium
follow up: #457
Background
The Firehose to deliver alerts to S3 should not be cluster based, it should be global. See the tagged PR above for more context.
Changes
tf_stream_alert_globals
module to house global configuration sets. The idea with this module is to be a placeholder for any other global resources we'll need in the future. We can eventually move resources into it as well.aws-firehose
outputs.Testing
Deployed and verified end-to-end in testing account