Skip to content

Commit

Permalink
- 1.0.1 -- 2025-08-14
Browse files Browse the repository at this point in the history
  - add response.text to errors for notify lamba code
  • Loading branch information
badra001 committed Aug 14, 2025
1 parent 79c5233 commit f020779
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 12 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

4 changes: 2 additions & 2 deletions code/darhts-guardduty-notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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}')
Expand Down
Binary file modified code/darhts-guardduty-notify.zip
Binary file not shown.
4 changes: 2 additions & 2 deletions code/darhts-s3-notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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}')
Expand Down
Binary file modified code/darhts-s3-notify.zip
Binary file not shown.
8 changes: 4 additions & 4 deletions code/package.move.tf
Original file line number Diff line number Diff line change
@@ -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" {
Expand Down
2 changes: 1 addition & 1 deletion code/package.notify.tf
Original file line number Diff line number Diff line change
@@ -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" {
Expand Down
2 changes: 1 addition & 1 deletion code/package.s3-tag.tf
Original file line number Diff line number Diff line change
@@ -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" {
Expand Down
2 changes: 1 addition & 1 deletion code/package.s3.tf
Original file line number Diff line number Diff line change
@@ -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" {
Expand Down
2 changes: 1 addition & 1 deletion version.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
locals {
_module_name = "aws-app-ditd-darhts-s3-transfer"
_module_version = "1.0.0"
_module_version = "1.0.1"
}

0 comments on commit f020779

Please sign in to comment.