Checks to see if a lambda function has been set with a runtime that is deprecated.
resource "aws_lambda_function" "function" {
function_name = "test_function"
role = "test_role"
runtime = "python2.7"
}
$ tflint
1 issue(s) found:
Error: The "python2.7" runtime has reached the end of support. (aws_lambda_function_deprecated_runtime)
on template.tf line 4:
4: runtime = "python2.7" // end of support reached!
AWS no longer supports these runtimes.
Update to a newer runtime. Supported runtimes can be found here