Skip to content

Commit 7b7498d

Browse files
committed
fixing cleanup issues
1 parent 36bc0b4 commit 7b7498d

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1880,8 +1880,8 @@ def delete_event(event: dict, context: Any) -> None: # noqa: CFQ001, CCR001, C9
18801880
for region in regions:
18811881
delete_custom_config_rule(rule_name, acct, region)
18821882

1883-
# 5, 6, & 7) Detach IAM policies, delete IAM policy, delete IAM execution role for custom config rule lambda
1884-
delete_custom_config_iam_role(rule_name, acct)
1883+
# 5, 6, & 7) Detach IAM policies, delete IAM policy, delete IAM execution role for custom config rule lambda
1884+
delete_custom_config_iam_role(rule_name, acct)
18851885
# Must infer the execution role arn because the function is being reported as non-existent at this point
18861886
execution_role_arn = f"arn:aws:iam::{sts.MANAGEMENT_ACCOUNT}:role/{SOLUTION_NAME}-lambda"
18871887
LOGGER.info(f"Removing state table record for lambda IAM execution role: {execution_role_arn}")

0 commit comments

Comments
 (0)