Comments (2)
Hi 👋
I'm not sure it's entirely related, but I'm trying to use 'log_retention_in_days': 7, in a chalice project with CDK. When I add this to the stage_config, I get the following error :
RuntimeError: Element referenced in Fn::Sub expression with logical ID: 'ApiHandler' was not found in the template
I'm using chalice==1.29.0
and python 3.10
.
self.chalice = Chalice(
self,
'ChaliceApp',
source_dir=RUNTIME_SOURCE_DIR,
stage_config={
'environment_variables': self.environment_variables,
'lambda_timeout': 900,
'lambda_memory_size': 256,
'log_retention_in_days' : 7
},
)
from chalice.
I get the same error when adding log_retention_in_days
to my chalice config. Fairly certain I'm doing this right. Here's my obfuscated config:
{
"version": "2.0",
"app_name": "***",
"automatic_layer": true,
"stages": {
"public": {
"api_gateway_stage": "***",
"api_gateway_endpoint_type": "REGIONAL",
"autogen_policy": false,
"iam_policy_file": "iam-policy.json",
"subnet_ids": "***",
"security_group_ids": [ ... ],
"log_retention_in_days": 731,
"environment_variables": { ... }
}
}
}
Then when I package this (before being run with terraform), I get this error:
chalice.package.UnsupportedFeatureError: LogGroup(resource_name='***', log_group_name='/aws/lambda/***', retention_in_days=731)
The chalice version we are using is 1.29.0
and I've also tried upgrading to 1.31.1
with no luck either 🙁
from chalice.
Related Issues (20)
- No way to set retry count on event bridge lambda (cron)?
- Support code signing for AWS Lambda
- AWS Chalice: Error on Redeploying @app.on_dynamodb_record Lambda
- Support for arm64 Graviton HOT 1
- Support for SSE streaming (OpenAI support)
- Aws lambda unzipped size error - aws chalice HOT 3
- Update demo Applications to Python 3.10
- HTTPResponse.create_from_dict raise AttributeError when response body is None
- Support Python 3.12 HOT 2
- Failed to create CDK project in CDK >= 2.73.0
- Why middleware applied at blueprint level applies to whole application ?
- automatic layer config option doesn't work with cdk approach
- Export event classes (or at least BaseLambdaEvent) or provide typeshed stub library
- Update Terraform AWS Provider HOT 4
- CDK integration: Should infrastructure/*.out folders be committed to VCS? HOT 1
- Feature Request: Add SourceAccount on S3 Event
- Project Discontinued? HOT 4
- Set list as an item in MultiDict
- Setting environment variables securly HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chalice.