Skip to main content

Configure AWS Lambda Functions should not have an excessive number of old versions

  1. Configure AWS Lambda Functions should not have an excessive number of old versions
  2. Use Case for AWS Lambda Functions should not have an excessive number of old versions
  3. Triage Guides by Violation Type
    1. Triage AWS Lambda Functions should not have an excessive number of old versions EXCESS_VERSIONS

How do I enable this policy?

Signature:
Type: Pyrae::Policy::PolicyDocument::Signatory
Properties:
SignatureTeamUrn: { "PyRef": "PyraeTeam" }
PolicyUrn: "urn:pyrae:policy:us-west-2:sAutx4ZxiqTJUzJdvky2km:policy/lambdaExcessiveOldVersions"

What permissions does this policy require in my AWS account?

{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"lambda:ListVersionsByFunction"
],
"Resource": "*"
}
]
}

What resources match this policy?

Type: Pyrae::Observer::MatchingRule
Properties:
MatchAccountType: aws
MatchUrnService: lambda
MatchUrnResourceType: function