|
1 | 1 | import boto3
|
| 2 | +import botocore |
2 | 3 | import sys
|
3 | 4 | import requests
|
4 | 5 | import datetime
|
@@ -61,7 +62,8 @@ def fetch_health_status_ssm(shared_ssm):
|
61 | 62 | prefix = '/unity/healthCheck/shared-services/'
|
62 | 63 | else:
|
63 | 64 | prefix = '/unity/healthCheck/'
|
64 |
| - # TODO: prefix = '/unity/PROJECT/VENUE/healthCheck/ |
| 65 | + # TODO: |
| 66 | + # prefix = '/unity/PROJECT/VENUE/healthCheck/ |
65 | 67 |
|
66 | 68 | # Initialize the list to store specific parameter names
|
67 | 69 | parameter_names = []
|
@@ -162,6 +164,9 @@ def upload_file_to_s3(file_name, bucket_name, object_name=None):
|
162 | 164 |
|
163 | 165 | def lambda_handler(event, context):
|
164 | 166 | """AWS Lambda function handler with print statements for debugging."""
|
| 167 | + print(f"boto3 version: {boto3.__version__}") |
| 168 | + print(f"botocore version: {botocore.__version__}") |
| 169 | + |
165 | 170 | shared_parameters_cognito = [
|
166 | 171 | '/unity/shared-services/cognito/monitoring-username',
|
167 | 172 | '/unity/shared-services/cognito/monitoring-password',
|
@@ -205,7 +210,7 @@ def lambda_handler(event, context):
|
205 | 210 | json.dump(health_status, file, indent=4)
|
206 | 211 |
|
207 | 212 | # Upload the file to S3
|
208 |
| - bucket_name = 'mgmt-13l4zrzw' # Set your bucket name here |
| 213 | + bucket_name = 'mgmt-13l4zrzw' |
209 | 214 | upload_message = upload_file_to_s3(filename, bucket_name)
|
210 | 215 | print("Upload Status:", upload_message)
|
211 | 216 |
|
|
0 commit comments