Skip to content

response-actions: PackageDownloaderLogGroup deletion policy leaving unwanted resources - #113

Merged
fcracker79 merged 1 commit into
mainfrom
fix/esc-7457-package-downloader-log-group-deletion-policy
Jul 16, 2026
Merged

fcracker79 merged 1 commit into
mainfrom
fix/esc-7457-package-downloader-log-group-deletion-policy

Conversation

@fcracker79

@fcracker79 fcracker79 commented Jul 16, 2026 •

Copy link
Copy Markdown
Contributor

Issue

When using modules/response-actions, PackageDownloaderLogGroup is created in every stackset with DeletionPolicy: Retain. It was the only one of the eight Lambda log groups configured this way — the other seven use CloudFormation's default (Delete).

If an account/region is offboarded and later onboarded again, the retained log group (/aws/lambda/${ResourceName}-package-downloader) survives the stackset deletion, so re-onboarding fails because the resource already exists.

Fix

Remove DeletionPolicy: Retain from PackageDownloaderLogGroup in templates/lambda-stackset.tpl, aligning it with the other log groups so it is deleted on offboarding and can be recreated on re-onboarding.

…loaderLogGroup

PackageDownloaderLogGroup was the only one of the eight Lambda log groups
with DeletionPolicy: Retain. On offboarding, the log group survived the
stackset deletion, and a subsequent re-onboarding failed because the log
group already existed. Removing the policy aligns it with the other seven
log groups (CloudFormation default: Delete) and fixes re-onboarding.

Fixes ESC-7457
Closes #112

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@fcracker79
fcracker79 merged commit 36665f4 into main Jul 16, 2026
2 checks passed
@fcracker79
fcracker79 deleted the fix/esc-7457-package-downloader-log-group-deletion-policy branch July 16, 2026 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants