Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issues #69 and #70 #71

Merged
merged 3 commits into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading