Skip to content

Commit 4e07da5

Browse files
committed
change state table solution
1 parent 0fc4b0b commit 4e07da5

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -458,19 +458,19 @@ def deploy_state_table():
458458
item_found, find_result = dynamodb.find_item(
459459
STATE_TABLE,
460460
dynamodb_resource,
461-
SOLUTION_NAME,
461+
"sra-common-prerequisites",
462462
{
463463
"arn": f"arn:aws:dynamodb:{sts.HOME_REGION}:{ssm_params.SRA_SECURITY_ACCT}:table/{STATE_TABLE}",
464464
},
465465
)
466466
if item_found is False:
467-
dynamodb_record_id, dynamodb_date_time = dynamodb.insert_item(STATE_TABLE, dynamodb_resource, SOLUTION_NAME)
467+
dynamodb_record_id, dynamodb_date_time = dynamodb.insert_item(STATE_TABLE, dynamodb_resource, "sra-common-prerequisites")
468468
else:
469469
dynamodb_record_id = find_result["record_id"]
470470
dynamodb.update_item(
471471
STATE_TABLE,
472472
dynamodb_resource,
473-
SOLUTION_NAME,
473+
"sra-common-prerequisites",
474474
dynamodb_record_id,
475475
{
476476
"aws_service": "dynamodb",

0 commit comments

Comments
 (0)