aws / aws/aws-toolkit-azure-devops
Add RetainResources parameter to CloudFormationDeleteStack task
- Dominant language
- TypeScript
- Stars
- 258
- Forks
- 114
- PR merge metrics
- No merged PRs in 30d
Description
**Is your feature request related to a problem? Please describe.**
I'm trying to delete a stack that is in a `DELETE_FAILED` state. It's in this state because CloudFormation was unable to delete a resource that is being used by other resources. Now, I'm unable to update or delete the stack.
[AWS documentation](https://docs.amazonaws.cn/en_us/AWSCloudFormation/latest/UserGuide/troubleshooting.html#troubleshooting-errors-delete-stack-fails) says I can do the following to resolve this:
> When stacks are in the DELETE_FAILED state because AWS CloudFormation couldn't delete a resource, rerun the deletion with the RetainResources parameter and specify the resource that AWS CloudFormation can't delete.
But the `CloudFormationDeleteStack` task doesn't support the `RetainResources` parameter.
**Describe the solution you'd like**
Add the [`RetainResources`](https://docs.amazonaws.cn/AWSCloudFormation/latest/APIReference/API_DeleteStack.html#API_DeleteStack_RequestParameters) parameter to the `CloudFormationDeleteStack` task.
Contributor guide
Research direction
Locate the CloudFormationDeleteStack task and inspect how its delete request parameters are defined and passed to AWS. Check any existing task tests or validation around request parameters, then verify that RetainResources is accepted and forwarded for stack deletion.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, typescript
- Domain
- cloud, devops
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100