aws / chalice

Python Serverless Microframework for AWS
Apache License 2.0
10.67k stars 1.01k forks source link

automatic layer config option doesn't work with cdk approach #2091

Open rengler33 opened 9 months ago

rengler33 commented 9 months ago

It seems that the automatic_layer = true doesn't work when deploying with cdk deploy.

here is my runtime/.chalice/config.json:

{
  "version": "2.0",
  "app_name": "campster",
  "stages": {
    "dev": {
      "api_gateway_stage": "api",
      "automatic_layer": true,
      "lambda_functions": {
        "api_handler": {
          "environment_variables": {
            "APP_TABLE_NAME": ""
          }
        }
      }
    }
  }
}

When I run cdk deploy, I see a lambda that looks like this (0 layers): image

Is layering to be expected when using cdk deploy?