From 3db6dac4cbaa210f427a48728b651279f79f51d3 Mon Sep 17 00:00:00 2001 From: Erik Osterman Date: Fri, 3 Jul 2020 08:37:43 -0700 Subject: [PATCH] Nuke EMR, IAM Groups, EC2 Key Pairs (#99) * upgrade geodesic * nuke EMR, IAM Groups, EC2 Keypairs --- .github/aws-nuke.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/aws-nuke.yaml b/.github/aws-nuke.yaml index 4e98355..3a24906 100644 --- a/.github/aws-nuke.yaml +++ b/.github/aws-nuke.yaml @@ -14,6 +14,8 @@ resource-types: - IAMRole - IAMRolePolicyAttachment - IAMPolicy + - IAMGroup + - IAMGroupPolicyAttachment - S3Object - S3Bucket - AutoScalingGroup @@ -31,6 +33,7 @@ resource-types: - EC2NetworkACL - EC2SecurityGroup - EC2NetworkInterface + - EC2KeyPair - ECSService - ECSCluster - EKSCluster @@ -44,6 +47,7 @@ resource-types: - CloudformationStack - RDSInstance - CloudWatchLogsLogGroup + - EMRCluster # don't nuke IAM users excludes: @@ -229,3 +233,15 @@ presets: value: "^/aws/eks/cpco-.*" - type: "regex" value: "^/aws/lambda/CIS.*" + EMRCluster: + - type: "regex" + value: "^cpco-.*" + EC2KeyPair: + - type: "regex" + value: "^cpco-.*" + IAMGroup: + - type: "regex" + value: "^cpco-.*" + IAMGroupPolicyAttachment: + - type: "regex" + value: "^cpco-.*"