Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloudformation stack fails to delete when resources don't exist #370

Open
fridim opened this issue Oct 8, 2024 · 1 comment
Open

Cloudformation stack fails to delete when resources don't exist #370

fridim opened this issue Oct 8, 2024 · 1 comment

Comments

@fridim
Copy link

fridim commented Oct 8, 2024

aws-nuke fails to delete a stack in DELETE_FAILED state with resources to delete marked as DELETE_FAILED because the resources don't exist anymore.

aws-nuke has a mechanism to only retain resources not DELETE_COMPLETE.

		for _, r := range retainableResources.StackResourceSummaries {
			if *r.ResourceStatus != cloudformation.ResourceStatusDeleteComplete {
				retain = append(retain, r.LogicalResourceId)
			}
		}

Suggestion: aws-nuke could exclude resources that don't exist anymore.

another option if it's hard to prove they don't exist: if they consistently fail deleting as part of the stack, is it safe to exclude them and leave the deletion to aws-nuke outside of the stack?

@ekristen
Copy link
Owner

ekristen commented Oct 8, 2024

Interesting. Any clue on how to replicate this?

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

No branches or pull requests

2 participants