Skip to content

Commit 3a8fb34

Browse files
committed
Add version debugger
1 parent 29b5221 commit 3a8fb34

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lambda/lambda_function.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import boto3
2+
import botocore
23
import sys
34
import requests
45
import datetime
@@ -61,7 +62,8 @@ def fetch_health_status_ssm(shared_ssm):
6162
prefix = '/unity/healthCheck/shared-services/'
6263
else:
6364
prefix = '/unity/healthCheck/'
64-
# TODO: prefix = '/unity/PROJECT/VENUE/healthCheck/
65+
# TODO:
66+
# prefix = '/unity/PROJECT/VENUE/healthCheck/
6567

6668
# Initialize the list to store specific parameter names
6769
parameter_names = []
@@ -162,6 +164,9 @@ def upload_file_to_s3(file_name, bucket_name, object_name=None):
162164

163165
def lambda_handler(event, context):
164166
"""AWS Lambda function handler with print statements for debugging."""
167+
print(f"boto3 version: {boto3.__version__}")
168+
print(f"botocore version: {botocore.__version__}")
169+
165170
shared_parameters_cognito = [
166171
'/unity/shared-services/cognito/monitoring-username',
167172
'/unity/shared-services/cognito/monitoring-password',
@@ -205,7 +210,7 @@ def lambda_handler(event, context):
205210
json.dump(health_status, file, indent=4)
206211

207212
# Upload the file to S3
208-
bucket_name = 'mgmt-13l4zrzw' # Set your bucket name here
213+
bucket_name = 'mgmt-13l4zrzw'
209214
upload_message = upload_file_to_s3(filename, bucket_name)
210215
print("Upload Status:", upload_message)
211216

0 commit comments

Comments
 (0)