Skip to content

Commit

Permalink
add last sns message
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed May 17, 2023
1 parent 56b6979 commit f471279
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion code/ddns-lambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
LOGGER = logging.getLogger()
account_id = None
region = None
VERSION = '2.0.4'
VERSION = '2.0.5'

# Read Env variables
DEBUG_LOG_LEVEL = os.environ.get('DebugLogLevel', 'INFO')
Expand Down Expand Up @@ -3113,6 +3113,10 @@ def process_delete_records(route53, instance_id, zone_id,
sns_msg = {}
sns_msg['instance_id'] = instance_id
sns_msg['account_id'] = get_caller_account_id()
sns_msg['event_id'] = event['id']
sns_msg['aws_request_id'] = context.aws_request_id
sns_msg['log_group_name'] = context.log_group_name
sns_msg['log_stream_name'] = context.log_stream_name
sns_msg['message'] = 'TXT record does not match. Will not delete the TXT record.'

sns_heritage = {}
Expand Down

0 comments on commit f471279

Please sign in to comment.