Skip to content

Commit

Permalink
Merge pull request #71 from kuettai/main
Browse files Browse the repository at this point in the history
Fix issues #69 and #70
  • Loading branch information
kuettai authored Apr 8, 2024
2 parents 3c06bca + 3b27892 commit 229462f
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ test.py
crossAccounts.json
output.zip
__fork/*.json
adminlte/**XX/
adminlte/**/*.html
adminlte/**/*.xlsx
adminlte/**/error.txt

adminlte/aws/**/
adminlte/aws/**/*.html
adminlte/aws/**/*.xlsx
adminlte/aws/**/error.txt
.~c9_invoke*
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ screener --regions ap-southeast-1,us-east-1 --services rds,iam

**Example 5: Run in the Singapore region, filter resources based on tags (e.g: Name=env Values=prod and Name=department Values=hr,coe)**
```
screener --regions ap-southeast-1 --filters env=prod%department=hr,coe
screener --regions ap-southeast-1 --tags env=prod%department=hr,coe
```

**Example 6: Run in all regions and all services**
Expand Down
20 changes: 20 additions & 0 deletions services/kms/kms.reporter.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,25 @@
"ref": [
"[Best practices for AWS KMS grants]<https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant-best-practices>"
]
},
"KeyInPendingDeletion":{
"category": "O",
"^description": "[Informational], no action needed. {$COUNT} KMS key is under Pending Deletion Stage.",
"downtime": 0,
"slowness": 0,
"additionalCost": 0,
"needFullTest": 0,
"criticality": "I",
"shortDesc": "[Info] No Action Needed"
},
"DisabledKey":{
"category": "O",
"^description": "[Informational], no action needed. {$COUNT} KMS key is under Disabled Stage.",
"downtime": 0,
"slowness": 0,
"additionalCost": 0,
"needFullTest": 0,
"criticality": "I",
"shortDesc": "[Info] No Action Needed"
}
}
4 changes: 2 additions & 2 deletions utils/CfnTrail.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def createStack(self):
TemplateBody=self.ymlBody
)
msg = "Empty CF stacked created successfully, name:" + self.getStackName()
_info(msg)
_info(msg, alwaysPrint=True)

except botocore.exceptions.ClientError as e:
ecode = e.response['Error']['Code']
Expand All @@ -68,7 +68,7 @@ def deleteStack(self):
)

msg = "Empty CF stacked deleted successfully, name:" + self.getStackName()
_info(msg)
_info(msg, alwaysPrint=True)
except botocore.exceptions.ClientError as e:
ecode = e.response['Error']['Code']
emsg = e.response['Error']['Message']
Expand Down
4 changes: 2 additions & 2 deletions utils/Tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ def _pr(s, forcePrint = False):
if forcePrint or DEBUG == True:
print(s)

def _info(s):
_printStatus("info", s)
def _info(s, alwaysPrint = False):
_printStatus("info", s, alwaysPrint)

def _warn(s):
_printStatus("\033[1;41m__!! WARNING !!__\033[0m", s, forcePrint=True)
Expand Down

0 comments on commit 229462f

Please sign in to comment.