-
Notifications
You must be signed in to change notification settings - Fork 4k
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
[dotnet] Lambda deployment fails trying to deploy additional Log Retention Lambda #2240
Comments
If I run the "same" thing using Typescript, I don't get all these Logging handlers deployed as extras, looks like there is some difference in the defaults between the two languages
|
Acknowledging this is a bug. For some reason the .NET bindings pass in a value instead of null when the Tracking here: aws/jsii#446 |
I'm getting a similar problem in TypeScript. const func = new lambda.Function(this, 'testBotAudioVideo', {
functionName: 'my-lambda',
code: this.lambdaCode,
handler: 'index.handler',
runtime: lambda.Runtime.NODEJS_10_X,
memorySize: 128,
timeout: cdk.Duration.seconds(5)
}); This works fine, but if I add Overriding log retention for a Lambda seems to be really broken at present. Tested in |
Why doesn't the
|
I did the same thing, @thevladeffect . CloudFormation has always been weird about Lambda Allowing the auto-generated |
For context - the reason the log retention is altered using a Lambda-backed CustomResource is because there is no way to create the LogGroup before the function exists if it does not have a physical name (and we want it to work the same way regardless of whether a physical name was given or not), as this would create a cyclic dependency (LogGroup needs function name, but function shouldn't be created before LogGroup). The options at this stage were:
|
@msimpsonnz In any case - does this problem still exist with the latest CDK? |
Closing this issue since there hasn't been an update in a while. Feel free to reopen. |
I'm trying to get a simple Lambda function deployed using the CDK
Version="0.28.0"
withdotnet
However the CDK deploy fails on creating a Lambda function with looks like it relates to CloudTrail or XRay logs using Lambda running Node
The error I get is:
Sample project is here:
https://github.com/msimpsonnz/cdknet-lam-dyn
The text was updated successfully, but these errors were encountered: