Monitoring Lambda code storage
The Lambda service stores your function code in an internal S3 bucket that’s private
to your account. Each AWS account is allocated 75 GB of storage in each Region. This
is an adjustable quota that can be raised by requesting a quota increase
The Lambda console shows the total storage used in the Dashboard submenu:
You can see the storage used by individual functions both in the Functions submenu and by using the Lambda CLI command list-versions-by-function:
This returns each published version of the function together with the $LATEST version. The CodeSize attribute shows the total number of bytes used by code storage of this function.
Similarly, for Lambda layers, you can see the code storage used by each layer version by using the CLI command get-layer-version:

