Skip to content

Commit

Permalink
[athena] fixing logger format string and using lambda alias for invoc…
Browse files Browse the repository at this point in the history
…ation (#810)
  • Loading branch information
ryandeivert authored Aug 21, 2018
1 parent b0612e5 commit 5811030
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stream_alert/athena_partition_refresh/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def run(self, event):
)

for sqs_rec in event['Records']:
LOGGER.debug('Processing event with message ID \'%s\' and SentTimestamp %d',
LOGGER.debug('Processing event with message ID \'%s\' and SentTimestamp %s',
sqs_rec['messageId'],
sqs_rec['attributes']['SentTimestamp'])

Expand Down
2 changes: 1 addition & 1 deletion terraform/modules/tf_stream_alert_athena/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ resource "aws_sqs_queue_policy" "streamalert_athena_data_bucket_notifications" {

resource "aws_lambda_event_source_mapping" "streamalert_athena_sqs_event_source" {
event_source_arn = "${aws_sqs_queue.streamalert_athena_data_bucket_notifications.arn}"
function_name = "${aws_lambda_function.athena_partition_refresh.arn}"
function_name = "${aws_lambda_function.athena_partition_refresh.arn}:${aws_lambda_alias.athena_partition_refresh_production.name}"
}

// S3 Bucekt Notificaiton: Configure S3 to notify Lambda
Expand Down

0 comments on commit 5811030

Please sign in to comment.