aws-cloudformation / aws-cloudformation/cloudformation-coverage-roadmap

DependsOn not respected when resource is in DELETE_FAILED state

Open
#852 1 comment 1 reaction 0 assignees View on GitHub
Coverage enhancement
Dominant language
No language data
Stars
1.1k
Forks
62
PR merge metrics
No merged PRs in 30d

Description

## Scope of request / Expected behavior

When a resource has a [DependsOn attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html) and is in the DELETE_FAILED state, the stuff it depends on should not be deleted because they may still be needed for cleanup

## 4. Suggest specific test cases

a CloudFormation stack containing:
1. an `AWS::SecretsManager::Secret`
2. a lambda for a custom resource, which always fails on deletion
3. a custom resource which executes that lambda and `DependsOn` the secret

on deletion, the custom resource should fail to delete and the other two should not be deleted

## Category

Management

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.