More Info:

AWS Lambda Functions should not have too many versions. This may led to security lapses and performance degradation.

Risk Level

Informational

Address

Security

Compliance Standards

AWSWAF

Triage and Remediation

Remediation

To remediate the misconfiguration “AWS Lambda Functions Should Not Have Too Many Versions” in AWS using AWS console, follow these steps:

  1. Open the AWS Lambda console and select the function that has too many versions.

  2. Click on the “Versions” tab to view all the versions of the function.

  3. Identify the versions that are no longer needed or are outdated.

  4. Click on the checkbox next to the version(s) that you want to delete.

  5. Click on the “Actions” menu and select “Delete” to delete the selected version(s).

  6. Confirm the deletion by clicking on the “Delete” button.

  7. Repeat steps 4-6 for all the unnecessary versions of the function.

  8. Once you have deleted all the unnecessary versions, click on the “Aliases” tab.

  9. Review the aliases and ensure that they are pointing to the correct version of the function.

  10. If any alias is pointing to an outdated version, click on the alias and update it to point to the latest version of the function.

  11. Finally, click on the “Save” button to save the changes.

By following these steps, you can remediate the misconfiguration “AWS Lambda Functions Should Not Have Too Many Versions” in AWS using AWS console.

Additional Reading: