Service Decommission Documentation Generator
Generate a comprehensive decommission checklist for ${1:-[SERVICE_NAME]} to be created at deployment time when all context is fresh.
Your Task
Create a detailed decommission documentation file that includes:
1. Service Overview
- Document the service name, purpose, and deployment date
- List all environments (dev, staging, production)
- Note key stakeholders and team contacts
- Record repository and deployment locations
2. Infrastructure Resources Checklist
Create a checklist covering:
- Cloud resources (compute instances, containers, serverless functions)
- Storage resources (databases, object storage, file systems, volumes)
- Network resources (load balancers, DNS records, CDN configurations)
- Security resources (SSL certificates, API keys, service accounts, IAM roles)
- Monitoring and alerting (dashboards, alert rules, log aggregations)
- CI/CD pipelines and automation jobs
- Scheduled tasks and cron jobs
3. Data Management Checklist
4. Access and Security Checklist
5. DNS and Networking Checklist
6. Integration and Dependencies Checklist
7. Monitoring and Observability Cleanup
8. Documentation and Knowledge Transfer
9. Financial and Administrative
10. Final Verification
Output Format
Create a markdown file named DECOMMISSION-${1:-[SERVICE_NAME]}.md with:
- Clear section headers
- Checkboxes for each action item
- Specific resource identifiers (not generic placeholders)
- Timeline and responsible parties for each major section
- Links to relevant documentation and tools
- Emergency rollback procedures
Important Notes
- This documentation should be created at deployment time when context is fresh
- Include actual resource identifiers, not examples
- Keep it updated as the service evolves
- Store it in the service repository for easy access
- Review and update quarterly or after major changes