-
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-mwaa: CfnEnvironment logging configuration required parameters set to optional #30645
Labels
@aws-cdk/aws-mwaa
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
needs-cfn
This issue is waiting on changes to CloudFormation before it can be addressed.
p2
Comments
simond
added
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
labels
Jun 24, 2024
ashishdhingra
added
needs-reproduction
This issue needs reproduction.
and removed
needs-triage
This issue or PR still needs to be triaged.
labels
Jun 24, 2024
Findings:
However, deploying the following CDK stack: import * as cdk from 'aws-cdk-lib';
import { Construct } from 'constructs';
import * as mwaa from 'aws-cdk-lib/aws-mwaa';
export class Issue30645Stack extends cdk.Stack {
constructor(scope: Construct, id: string, props?: cdk.StackProps) {
super(scope, id, props);
const mwaaEnvironment = new mwaa.CfnEnvironment(this, "MwaaEnvironment", {
name: 'MyMwaaEnvironment',
loggingConfiguration: {
taskLogs: {enabled: false, logLevel: 'INFO'},
webserverLogs: {enabled: false},
schedulerLogs: {enabled: false},
workerLogs: {enabled: false},
dagProcessingLogs: {enabled: false},
}
});
}
} gives the below validation error from CloudFormation:
Same goes for Most likely an issue with CloudFormation resource specification. |
ashishdhingra
added
p1
effort/medium
Medium work item – several days of effort
needs-cfn
This issue is waiting on changes to CloudFormation before it can be addressed.
and removed
needs-reproduction
This issue needs reproduction.
labels
Jun 24, 2024
Internal tracking ticket: P137161118 Another internal ticket (from above ticket): P137427298 |
This was referenced Jul 1, 2024
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
@aws-cdk/aws-mwaa
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
needs-cfn
This issue is waiting on changes to CloudFormation before it can be addressed.
p2
Describe the bug
When trying to instantiate a new
CfnEnvironment
with logging configuration set to the following:I get an error when running CDK deploy:
The error is due to the
logLevel
attribute not being passed into the logging options. The following fixes the issue:The issue is that that
logLevel
is not a required parameter according to the TypeScript interface:Expected Behavior
CDK should either:
logLevel
(since I've disabled logging anyway) and deploy the instance of MWAAor
logLevel
Current Behavior
Error message asking me to provide the
logLevel
Reproduction Steps
Possible Solution
Provide a
logLevel
Additional Information/Context
No response
CDK CLI Version
2.145.0 (build fdf53ba)
Framework Version
No response
Node.js Version
v22.0.0
OS
osx
Language
TypeScript
Language Version
v10.9.2
Other information
No response
The text was updated successfully, but these errors were encountered: