Skip to Content

Rightsize Lambda Functions

When you create a Lambda function, it might be over-provisioned. You can easily modify the memory allocated.
20 May 2026 by
Tony FinOps

Rightsize Lambda Functions

When you create a Lambda function, it might be over-provisioned. You can easily modify the memory allocated.

  • AWS Lambda is a serverless compute service that lets you run code without provisioning or managing servers.

  • You are mainly charged based on the number of requests for your functions and the duration it takes for your code to execute.

  • Memory and ephemeral storage can also be rightsized.

Rightsize Lambda Functions

 Subtitles are available in English, French and Spanish. Click here to get the full masterclass. 

How to identify?

You can identify over-provisioned Lambda functions using the following methods:

  • From our Cost Optimizations Report, check at Lambda_Rightsize section.

  • In AWS Console, go to the Lambda service, then select the Functions section. Select a function and go to the Monitor section. Look at the CloudWatch Logs, focusing on recent invocations. Compare MemorySetInMB and MemoryUsedInMB.

Rightsize Lambda Functions – How to identify?


  • In AWS Console, go to Cost Optimization Hub. You can see a graph per resource type.

 Rightsize Lambda Functions – How to identify?

 

If you see a Lambda function, click on View opportunities. Filter by Lambda function and check the Top recommended action = Rightsize.

Rightsize Lambda Functions – How to identify?

  • In AWS Console, go to Compute Optimizer. Click on Lambda rightsize for recommendations.

Rightsize Lambda Functions – How to identify?

How to fix?

  • In AWS Console, go to the Lambda service, then select the Functions section. Choose a function, navigate to the Configuration section, and click Edit. Modify Memory, ephemeral storage, and Timeout settings.

Rightsize Lambda Functions – How to fix?

If the resource is provisioned automatically via IaC (such as CloudFormation or Terraform), update the corresponding code to reflect the changes.

 

Rightsize EBS Volumes
In GP3 and IO1/IO2 volume types, you are charged for IOPS and/or Throughput if they exceed the minimum values (3000 IOPS / 125 MB/s).