handle environment value as int instead of string.
the tf example for an error (delete_after):
environment {
variables = {
es_endpoint  = var.es_endpoint
index        = 'all'
delete_after = 15
index_format = var.index_format
sns_arn      = var.sns_arn
}
}
@@ -25,6 +25,7 @@ class LambdaEnvironmentCredentials(BaseResourceCheck):
if type(values) is not list:
values = [values]
for value in values:
+ if isinstance(value, str):
if re.match(access_key_pattern, value) or re.match(secret_key_pattern, value):
return CheckResult.FAILED
return CheckResult.PASSED
