add-preprocessor

Add custom pre-deletion validation and cleanup processes to CloudFormation stacks.

91|3|Updated Jun 19, 2022
One-click install
npx skills add https://github.com/go-to-k/delstack --skill add-preprocessor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-preprocessor
Source: https://github.com/go-to-k/delstack/tree/main/.claude/skills/add-preprocessor
Command: npx skills add https://github.com/go-to-k/delstack --skill add-preprocessor

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enables adding pre-deletion logic to CloudFormation stacks, allowing validation checks or cleanup actions before deletion occurs.

Core Features & Use Cases

  • Pre-deletion Validation: Checks for deletion restrictions like termination protection or resource-specific safeguards.
  • Pre-deletion Modification: Performs actions such as detaching VPC configurations or disabling protections to facilitate successful stack deletion.
  • Use Case: Automate the check for deletion protection and detach Lambda VPC settings across multiple stacks to prevent delays and errors during cleanup.

Quick Start

Use the add-preprocessor skill to implement a check that verifies whether termination protection is enabled before stack deletion.

Frequently Asked Questions about add-preprocessor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add custom validation before deleting a CloudFormation stack?

Pre-deletion validation checks for CloudFormation stack deletion restrictions like termination protection or resource-specific safeguards to prevent delays and errors during cleanup. This mechanism intercepts the deletion process to ensure all resources are safe to remove.

How do I disable termination protection for multiple AWS stacks automatically?

Pre-deletion modification performs actions such as detaching VPC configurations or disabling termination protections to facilitate successful stack deletion. This allows you to resolve resource-specific safeguards before removal occurs.

Why does my CloudFormation stack deletion fail when Lambda VPC settings are attached?

To automate stack cleanup, you implement pre-deletion logic that checks for deletion protection and detaches Lambda VPC settings across multiple stacks. This prevents delays and errors during the cleanup process.

Can I detach VPC configurations from Lambda functions before stack deletion?

Yes, you can perform pre-deletion modifications to detach Lambda VPC configurations before stack deletion. This ensures successful stack removal by resolving resource dependencies that would otherwise block the process.

Do I need AWS environment access to run pre-deletion checks on CloudFormation?

Pre-deletion validation is necessary when managing AWS environments that require validation or resource detachment before stack removal. It is particularly useful for stacks with termination protection or complex VPC configurations.

What are the limitations of using pre-deletion logic for CloudFormation cleanup?

You can prevent deletion delays by using pre-deletion logic to automate checks for deletion protection and detach Lambda VPC settings across multiple stacks. This proactively resolves restrictions before removal occurs.