Skip to content

Commit

Permalink
feat: add certain sso resource to aws nuke exclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
rehanvdm committed Jan 15, 2025
1 parent ce8ea4e commit 51be045
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/scripts/aws-nuke/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ export async function awsNuke(props: DataLandingZoneProps, relativeDir: string,
type: 'contains',
value: 'aws-controltower',
},

//Some AWS SSO and IAM Identity Center resources should nto be deleted, grouping them with the ControlTower filters
{
type: 'regex',
value: 'AWSSSO_.*_DO_NOT_DELETE',
},
{
type: 'glob',
value: 'AWSReservedSSO_*',
},
];
const cdkFilters = [
{
Expand Down

0 comments on commit 51be045

Please sign in to comment.