Getting error if events_to_track parameter is not set.
Closed this issue · 2 comments
zhelezovartem commented
Terraform code (events_to_track parameter is not set):
module "cloudtrail_to_slack" {
source = "fivexl/cloudtrail-to-slack/aws"
version = "2.3.0"
default_slack_hook_url = nonsensitive(data.aws_ssm_parameter.hook.value)
cloudtrail_logs_s3_bucket_name = module.cloudtrail_bucket.s3_bucket_id
tags = module.tags.result
}
Getting error message:
Event parsing failed: <class 'SyntaxError'>.
[ERROR] SyntaxError: unexpected EOF while parsing (<string>, line 0)
Traceback (most recent call last):
File "/var/task/main.py", line 128, in lambda_handler
handle_event(log_event, record['key'], rules, ignore_rules, hook_url)
File "/var/task/main.py", line 158, in handle_event
if should_message_be_processed(event, rules, ignore_rules) is not True:
File "/var/task/main.py", line 140, in should_message_be_processed
if eval(rule,
{}
, {'event': flat_event}) is True:
Andrey9kin commented
@zhelezovartem i believe something like this got fixed in 2.3.1. Could you please try the latest? ( 2.3.2)
zhelezovartem commented
@Andrey9kin yes, 2.3.2 works fine, thank you!