Skip to content

Commit 6dbc72b

Browse files
committed
updating execution role name for state record
1 parent 652e602 commit 6dbc72b

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,6 +1127,7 @@ def create_event(event, context):
11271127
LOGGER.info(f"CFN_RESPONSE_DATA POST deploy_state_table: {CFN_RESPONSE_DATA}")
11281128
# add IAM state table record for the lambda execution role
11291129
execution_role_arn = lambdas.get_lambda_execution_role(os.environ["AWS_LAMBDA_FUNCTION_NAME"])
1130+
execution_role_name = execution_role_arn.split("/")[-1]
11301131
LOGGER.info(f"Adding state table record for lambda IAM execution role: {execution_role_arn}")
11311132
add_state_table_record("iam", "implemented", "lambda execution role", "role", execution_role_arn, sts.MANAGEMENT_ACCOUNT, sts.HOME_REGION, execution_role_name)
11321133
# add lambda function state table record

0 commit comments

Comments
 (0)