Skip to content

Commit af9831d

Browse files
committed
Set to delete all log groups in workspace
1 parent 8cb8887 commit af9831d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/cleanup_log_groups.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def main(self, sandbox: str):
1717
for page in paginator.paginate():
1818
for log_group in page.get("logGroups", []):
1919
log_group_name = log_group["logGroupName"]
20-
if f"/aws/lambda/{sandbox}_" in log_group_name:
20+
if sandbox in log_group_name:
2121
log_groups_to_delete.append(log_group_name)
2222

2323
if not log_groups_to_delete:

0 commit comments

Comments
 (0)