Skip to content

Commit e333e12

Browse files
committed
update lambda client
1 parent 97ed3c6 commit e333e12

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ def deploy_metric_filters_and_alarms(region, accounts, resource_properties):
724724
global LIVE_RUN_DATA
725725
global CFN_RESPONSE_DATA
726726
LOGGER.info(f"CloudWatch Metric Filters: {CLOUDWATCH_METRIC_FILTERS}")
727-
lambdas.LAMBDA_CLIENT = sts.assume_role_resource(sts.MANAGEMENT_ACCOUNT, sts.CONFIGURATION_ROLE, "lambda", sts.HOME_REGION)
727+
lambdas.LAMBDA_CLIENT = sts.assume_role(sts.MANAGEMENT_ACCOUNT, sts.CONFIGURATION_ROLE, "lambda", sts.HOME_REGION)
728728
execution_role_arn = lambdas.get_lambda_execution_role(os.environ["AWS_LAMBDA_FUNCTION_NAME"])
729729

730730
for filter_name in CLOUDWATCH_METRIC_FILTERS:

0 commit comments

Comments
 (0)