-
Notifications
You must be signed in to change notification settings - Fork 189
Description
Bug Report
Resolve "None" unit error for elasticloadbalancing checks.
We received the "awslimitchecker does not know how to handle this" warning for Unit: None on elasticloadbalancing checks for Classic and Application load balancers.
It seems that "None" is the expected default, so it would seem that a different unit is being specified elsewhere. My guess is that something in elb.py is conflicting with the service quotas check somehow.
Version
9.0.0
Installation Method
We run pip install in CodeBuild to package up the requirements into a zipfile for an automated Lambda deployment.
pip install -r requirements.txt -t lambda-code/
Supporting Software Versions
python3.7
Actual Output
Usage:
from awslimitchecker.checker import AwsLimitChecker
AWS_REGION = os.getenv("AWS_REGION")
USE_TRUSTED_ADVISOR = os.getenv("USE_TRUSTED_ADVISOR")
def handle(event, context):
aws_limit_checker = AwsLimitChecker(region=AWS_REGION)
thresholds = aws_limit_checker.check_thresholds(use_ta=USE_TRUSTED_ADVISOR)
for service, svc_limits in thresholds.items():
...Output:
ERROR: Service Quota service_code=elasticloadbalancing QuotaName="Classic Load Balancers per Region" has Units set to "None"; awslimitchecker does not know how to handle this. This quota will be ignored. Please open a bug report.
As well as the same for "Application Load Balancers per Region".
Expected Output
No error.
TrustedAdvisor
I don't think so, I believe this is some mix of Service Quotas and whatever is going on in elb.py
Testing Assistance
Yes, we'd be happy to!