-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
(@aws-cdk/aws-lambda): (missing logGroup
property in type FunctionProps
in 2.132.0)
#29439
Comments
I think it's still supported: export class DummyStack extends Stack {
constructor(scope: Construct, id: string, props: StackProps) {
super(scope, id, props);
const myLogGroup = new logs.LogGroup(this, 'MyLogGroupWithLogGroupName', {
logGroupName: 'customLogGroup',
});
new lambda.Function(this, 'Lambda', {
code: new lambda.InlineCode('foo'),
handler: 'index.handler',
runtime: lambda.Runtime.NODEJS_18_X,
logGroup: myLogGroup,
});
}
} synth: Type: AWS::Lambda::Function
Properties:
Code:
ZipFile: foo
Handler: index.handler
LoggingConfig:
LogGroup:
Ref: MyLogGroupWithLogGroupNameB577EB65 Can you verify both your CLI and aws-cdk-lib version are 2.132.0? % grep aws-cdk-lib package.json |
Issue still persists.
edit: |
Thank you. I am resolving this issue for now. |
|
Describe the bug
Missing
logGroup
property in typeFunctionProps
in 2.132.0. This was working in 2.131.0.Expected Behavior
FunctionProps
haslogGroup
property.Current Behavior
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
1.132.0
Framework Version
No response
Node.js Version
node/18.19.0
OS
MacOS Ventura 13.6.4
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: