-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lambda Specific Configuration does not work with CDK #1998
Comments
The current code only reads Lines 197 to 209 in f64bd82
I created a PR. I found a workaround to set up the lambda specific configuration with CDK and the current code. Add the following configuration in In the CDK configuration step, the stage name will be the app_name (e.g. {
"version": "2.0",
"app_name": "cdkdemo",
"stages": {
"cdkdemo": {
"lambda_functions": {
"foo": {
"lambda_timeout": 200,
"lambda_memory_size": 256,
"environment_variables": {"HELLO": "world2"}
}
}
},
"dev": {
"api_gateway_stage": "api",
"lambda_functions": {
"api_handler": {
"environment_variables": {
"APP_TABLE_NAME": "xxx"
}
},
"foo": {
"environment_variables": {
"APP_TABLE_NAME": "yyy"
},
"lambda_timeout": 900,
"lambda_memory_size": 256
}
}
}
}
} |
I feel like the chalice + cdk deployment is super inmature. lots of things are not configurable and the old I am working a a team having around 250+ lambda function in production and 10+ different internal api. We have tried pure CDK, Chalice + CDK, and eventually we choose CDK for iam role, and infra, then explicitly use those values in Chalice / config.json and deploy in the "classic chalice" way, and use S3 to store |
I think this answer can help: |
I am using Chalice with CDK to create a REST API and a scheduled lambda function (for a batch job).
I want to specify the configuration for the scheduled lambda function.
In the CDK file, the following configuration is used.
However, after deploying the application with
cdk deploy
, the scheduled lambda function is created with the default timeout (60 sec) and memory size (128 MB).I think the Lambda Specific Configuration does not work with CDK.
The text was updated successfully, but these errors were encountered: