Skip to content

Commit daf5ea8

Browse files
authored
Merge branch 'master' into kay/aws-security-hub
2 parents d48acab + c5d4401 commit daf5ea8

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
@@ -598,6 +598,9 @@ def lambda_handler(event: Dict[str, Any], context: Dict[str, Any]) -> str:
598598
:param context: lambda expected context object
599599
:returns: none
600600
"""
601+
602+
if os.environ.get("LOG_EVENTS", "False") == "True":
603+
logging.info("Event logging enabled: %s", json.dumps(event))
601604

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

0 commit comments

Comments
 (0)