Skip to content

Commit b153186

Browse files
committed
update for config arn
1 parent 2a8f21b commit b153186

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1713,7 +1713,8 @@ def deploy_config_rule(account_id: str, rule_name: str, lambda_arn: str, region:
17131713
"DETECTIVE",
17141714
SOLUTION_NAME,
17151715
)
1716-
config_rule_arn = config_response["ConfigRule"]["ConfigRuleArn"]
1716+
config_rule_search = config.find_config_rule(rule_name)
1717+
config_rule_arn = config_rule_search[1]["ConfigRules"][0]["ConfigRuleArn"]
17171718
else:
17181719
LOGGER.info(f"DRY_RUN: Creating Config policy permissions for {rule_name} lambda function in {account_id} in {region}...")
17191720
LOGGER.info(f"DRY_RUN: Creating {rule_name} config rule in {account_id} in {region}...")

0 commit comments

Comments
 (0)