feat: Enhance account-nuke.sh with SSO filters#68
Conversation
Added filters for SSO resources in account-nuke script.
There was a problem hiding this comment.
Pull Request Overview
This PR enhances the account-nuke script by adding SSO (Single Sign-On) resource filters to prevent accidental deletion of critical AWS SSO components during account cleanup operations.
Key changes:
- Added a new
ssopreset with filters for IAM SAML providers, roles, and policy attachments - Implemented protection patterns for AWS Reserved SSO resources and SAML providers
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
User description
Added filters for SSO resources in account-nuke script.
PR Type
Enhancement
Description
Added SSO resource filters to account-nuke script
Configured exclusions for AWS SSO SAML providers and roles
Enhanced script to preserve SSO infrastructure during cleanup
Diagram Walkthrough
File Walkthrough
account-nuke.sh
Add SSO resource preservation filterstools/aws/account-nuke.sh
ssopreset with filters for SSO resourcesIAMSAMLProviderwith patternAWSSSO_.*_DO_NOT_DELETEIAMRoleandIAMRolePolicyAttachmentwithpattern
AWSReservedSSO_*