chalice icon indicating copy to clipboard operation
chalice copied to clipboard

Support for Ephemeral Storage size in config parameters

Open ojhilt opened this issue 3 years ago • 3 comments

Now that lambda supports changing the ephemeral storage size of a lambda function, in much the same way as memory size etc.. is there any plan to add this as a supported configuration parameter?

https://aws.amazon.com/blogs/aws/aws-lambda-now-supports-up-to-10-gb-ephemeral-storage/

ojhilt avatar Aug 22 '22 15:08 ojhilt

This will be really useful! I have lambdas that do some light video processing, and need to download them so /tmp gets filled up quickly.

Right now I have to use the AWS CLI in a script to update after deploying.

msanatan avatar Jul 17 '23 21:07 msanatan

If you are interested, I have published a fork of chalice with support for configuring ephemeral storage.

https://pypi.org/project/chalice-nuclei-ai/ https://github.com/NucleiAI/chalice

henryivesjones avatar Sep 05 '23 20:09 henryivesjones

It's possible to override it by using the deployment with AWS Cloudformation, and the extras.json https://aws.github.io/chalice/topics/cfn.html#template-merge

{
  "Resources": {
    "APIHandler": {
      "Properties": {
        "Environment": {
          "Variables": {
            "LAMBDA_SOMETHING_REF": {
              "Ref": "LambdaSomething"
            }
          }
        },
        "EphemeralStorage": {
          "Size": 5308
        }
      }
    }
  }
}

rodrigonehring avatar Sep 06 '23 11:09 rodrigonehring