-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
aws-lambda: LoggingConfig is not supported in us-gov-east-1. #29227
Comments
I think we might be specifying some kind of log configuration via a custom resource. Not able to get help here considering I can't link internal amazon code. Closing out. |
|
re-opening and providing some sample pseudo code, to show we don't use Log configs in our Lambda CustomProvider
|
Just looked at a template in non-us-gov region and found that there was LoggingConfig there. If I don't specify in my CDK code, that means it's auto-generated in template right? How do I avoid getting this error? |
I think it should have been reverted #28934 I am using 2.130.0 now and my code like export class DummyStack extends Stack {
constructor(scope: Construct, id: string, props: StackProps) {
super(scope, id, props);
const stackSuffix = 'foo';
const dummyFunction = getLambdaFunction(this);
const provider = new cr.Provider(this,
`Provider-${stackSuffix}`,
{
onEventHandler: dummyFunction,
isCompleteHandler: dummyFunction,
queryInterval: Duration.minutes(2),
totalTimeout: Duration.minutes(60)
});
const customResource = new CustomResource(
this,
`customResource-${(new Date()).toLocaleString()}`,
{
serviceToken: provider.serviceToken,
})
}
} I didn't see Feel free to ping me internally if you need any check. |
Ok apologies, I was looking at old commit, we recently pushed commit that used LogGroup on customProvider. Writing in conditional to fix. |
|
Describe the bug
Even after building in release v2.125.0, I still see this issue when trying to create Lambda.
Expected Behavior
We've built in new release, and don't specify
LoggingConfig
on creation of Lambda so not sure why we're still seeing this error.Current Behavior
Error in stack creation
Reproduction Steps
N/A
Possible Solution
No response
Additional Information/Context
AWS Internal Slack Message with more details: https://amzn-wwc.slack.com/archives/C01853SDU7N/p1708647464531339
Similar issue: #28919
Original fix: #28934
CDK CLI Version
^2.125.0
Framework Version
No response
Node.js Version
18.x
OS
N/A
Language
TypeScript
Language Version
Typescript ~4.5.5
Other information
No response
The text was updated successfully, but these errors were encountered: