diff --git a/CHANGELOG.md b/CHANGELOG.md index 60b9a8d..8f8dca5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,3 +3,6 @@ - 1.0.0 -- 2025-08-13 - initial creation +- 1.0.1 -- 2025-08-14 + - add response.text to errors for notify lamba code + diff --git a/code/darhts-guardduty-notify.py b/code/darhts-guardduty-notify.py index fbfa70c..d05d2e0 100755 --- a/code/darhts-guardduty-notify.py +++ b/code/darhts-guardduty-notify.py @@ -40,7 +40,7 @@ def boolean_env(value): APPNAME = 'darhts-guardduty-notify' account_id = None region = None -VERSION = '1.0.16' +VERSION = '1.0.17' #TF_MODULE_VERSION=os.environ.get('TF_MODULE_VERSION','') logger_level=os.environ.get('POWERTOOLS_LOG_LEVEL', 'INFO') @@ -306,7 +306,7 @@ def send_to_salesforce(event_payload): if response: logger.debug(f"Successfully sent event to Salesforce. Response: {response.status_code}") else: - logger.debug(f"Salesforce send-event Response: {response.status_code}") + logger.debug(f"Salesforce send-event Response: status {response.status_code} text {response.text}") response.raise_for_status() except requests.exceptions.HTTPError as e: logger.error(f'HTTP error: {e}') diff --git a/code/darhts-guardduty-notify.zip b/code/darhts-guardduty-notify.zip index 62f1726..8d0afd1 100644 Binary files a/code/darhts-guardduty-notify.zip and b/code/darhts-guardduty-notify.zip differ diff --git a/code/darhts-s3-notify.py b/code/darhts-s3-notify.py index 135eebc..8810351 100755 --- a/code/darhts-s3-notify.py +++ b/code/darhts-s3-notify.py @@ -41,7 +41,7 @@ def boolean_env(value): APPNAME = 'darhts-s3-notify' account_id = None region = None -VERSION = '1.0.5' +VERSION = '1.0.6' #TF_MODULE_VERSION=os.environ.get('TF_MODULE_VERSION','') logger_level=os.environ.get('POWERTOOLS_LOG_LEVEL', 'INFO') @@ -308,7 +308,7 @@ def send_to_salesforce(event_payload): if response: logger.debug(f"Successfully sent event to Salesforce. Response: {response.status_code}") else: - logger.debug(f"Salesforce send-event Response: {response.status_code}") + logger.debug(f"Salesforce send-event Response: status {response.status_code} text {response.text}") response.raise_for_status() except requests.exceptions.HTTPError as e: logger.error(f'HTTP error: {e}') diff --git a/code/darhts-s3-notify.zip b/code/darhts-s3-notify.zip index cbe2f8d..88c6474 100644 Binary files a/code/darhts-s3-notify.zip and b/code/darhts-s3-notify.zip differ diff --git a/code/package.move.tf b/code/package.move.tf index f7caa49..e0d11f9 100644 --- a/code/package.move.tf +++ b/code/package.move.tf @@ -1,8 +1,8 @@ locals { - app_move_zip_file = "darhts-guardduty-move.zip" - app_move_file = "darhts-guardduty-move.py" - app_move_file_list = fileset(format("%v/%v", path.root, local.app_move_file), "**") - app_move_hash = filesha256(format("%v/%v", path.root, local.app_move_file)) + app_move_zip_file = "darhts-guardduty-move.zip" + app_move_file = "darhts-guardduty-move.py" + # app_move_file_list = fileset(format("%v/%v", path.root, local.app_move_file), "**") + app_move_hash = filesha256(format("%v/%v", path.root, local.app_move_file)) } resource "null_resource" "app_move_zip" { diff --git a/code/package.notify.tf b/code/package.notify.tf index a446654..2df9360 100644 --- a/code/package.notify.tf +++ b/code/package.notify.tf @@ -1,7 +1,7 @@ locals { app_notify_zip_file = "darhts-guardduty-notify.zip" app_notify_file = "darhts-guardduty-notify.py" - app_notify_hash = filesha256(format("%v/%v", path.root, local.app_move_file)) + app_notify_hash = filesha256(format("%v/%v", path.root, local.app_notify_file)) } resource "null_resource" "app_notify_zip" { diff --git a/code/package.s3-tag.tf b/code/package.s3-tag.tf index 4cc8a3d..1bb6682 100644 --- a/code/package.s3-tag.tf +++ b/code/package.s3-tag.tf @@ -1,7 +1,7 @@ locals { app_s3_tag_zip_file = "darhts-s3-tag.zip" app_s3_tag_file = "darhts-s3-tag.py" - app_s3_tag_hash = filesha256(format("%v/%v", path.root, local.app_move_file)) + app_s3_tag_hash = filesha256(format("%v/%v", path.root, local.app_s3_tag_file)) } resource "null_resource" "app_s3_tag_zip" { diff --git a/code/package.s3.tf b/code/package.s3.tf index d7f7113..7ba2abb 100644 --- a/code/package.s3.tf +++ b/code/package.s3.tf @@ -1,7 +1,7 @@ locals { app_s3_notify_zip_file = "darhts-s3-notify.zip" app_s3_notify_file = "darhts-s3-notify.py" - app_s3_notify_hash = filesha256(format("%v/%v", path.root, local.app_move_file)) + app_s3_notify_hash = filesha256(format("%v/%v", path.root, local.app_s3_notify_file)) } resource "null_resource" "app_s3_notify_zip" { diff --git a/version.tf b/version.tf index 758b5ab..7e414a6 100644 --- a/version.tf +++ b/version.tf @@ -1,4 +1,4 @@ locals { _module_name = "aws-app-ditd-darhts-s3-transfer" - _module_version = "1.0.0" + _module_version = "1.0.1" }