Skip to content

Commit fef326c

Browse files
committed
Merge branch 'kay/aws-security-hub' of https://github.com/kaykhan/terraform-aws-notify-slack into kay/aws-security-hub
2 parents e140b8f + daf5ea8 commit fef326c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [6.5.2](https://github.com/terraform-aws-modules/terraform-aws-notify-slack/compare/v6.5.1...v6.5.2) (2025-02-25)
6+
7+
8+
### Bug Fixes
9+
10+
* Modify logging for security inspector issue ([#249](https://github.com/terraform-aws-modules/terraform-aws-notify-slack/issues/249)) ([b3cd40f](https://github.com/terraform-aws-modules/terraform-aws-notify-slack/commit/b3cd40f6e90fa628e0481b5093d60a302e58f155))
11+
512
## [6.5.1](https://github.com/terraform-aws-modules/terraform-aws-notify-slack/compare/v6.5.0...v6.5.1) (2025-01-06)
613

714

functions/notify_slack.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,9 @@ def lambda_handler(event: Dict[str, Any], context: Dict[str, Any]) -> str:
599599
:param context: lambda expected context object
600600
:returns: none
601601
"""
602+
603+
if os.environ.get("LOG_EVENTS", "False") == "True":
604+
logging.info("Event logging enabled: %s", json.dumps(event))
602605

603606
for record in event["Records"]:
604607
sns = record["Sns"]

0 commit comments

Comments
 (0)