Skip to content

Commit

Permalink
Keep IAM Users and Organization Role (#125)
Browse files Browse the repository at this point in the history
* Kepp IAM Users and Organization Role

* Update aws-nuke.yaml

* Update aws-nuke.yaml

* Kepp IAM Users and Organization Role
  • Loading branch information
goruha authored Sep 19, 2024
1 parent 7146581 commit ad7e218
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/aws-nuke.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,29 @@ regions:
- us-gov-east-1
- us-gov-west-1


resource-types:
# don't nuke IAM users
excludes:
- IAMUser
- IAMUserAccessKey
- IAMUserPolicyAttachment

account-blocklist:
- "999999999999" # production

accounts:
# testing account
126450723953: {}
126450723953:
presets:
- defaults

presets:
defaults:
filters:
IAMRole:
- "OrganizationAccountAccessRole"
IAMRolePolicy:
- property: "role:RoleName"
type: "regex"
value: "^OrganizationAccountAccessRole$"

0 comments on commit ad7e218

Please sign in to comment.