Skip to content

Commit 0e5c87b

Browse files
committed
add tracing to fix bucket filters
1 parent f5a4baf commit 0e5c87b

File tree

1 file changed

+2
-0
lines changed
  • aws_sra_examples/solutions/genai/bedrock_org/lambda/src

1 file changed

+2
-0
lines changed

aws_sra_examples/solutions/genai/bedrock_org/lambda/src/app.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,9 @@ def create_event(event, context):
435435
LOGGER.info(f"{filter} parameters: {filter_params}")
436436
if filter_deploy is False:
437437
continue
438+
LOGGER.info(f"Raw filter pattern: {CLOUDWATCH_METRIC_FILTERS[filter]}")
438439
if "BUCKET_NAME_PLACEHOLDER" in CLOUDWATCH_METRIC_FILTERS[filter]:
440+
LOGGER.info(f"{filter} filter parameter: 'BUCKET_NAME_PLACEHOLDER' found. Updating with bucket info...")
439441
filter_pattern = build_s3_metric_filter_pattern(filter_params["bucket_names"], CLOUDWATCH_METRIC_FILTERS[filter])
440442
if "INPUT_PATH" in CLOUDWATCH_METRIC_FILTERS[filter]:
441443
filter_pattern = CLOUDWATCH_METRIC_FILTERS[filter].replace("<INPUT_PATH>", filter_params["input_path"])

0 commit comments

Comments
 (0)