(aws-batch): Implement LogConfigurationProperty with awslogs per default in EcsJobDefinition #27308
Labels
@aws-cdk/aws-batch
Related to AWS Batch
feature-request
A feature should be added or improved.
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the feature
Today every AWS Batch Job Definition created with CDK has no logging configuration.
Use Case
A container of a AWS Batch job failed with this message :
I can't debug without the logging configuration enabled.
FYI : Logging data is displayed in "Job logs" when the job status is RUNNING. So there's no point for this use case
Proposed Solution
enable per default awslogs
awslogs
as described in this interface aws_cdk.aws_batch.CfnJobDefinition.LogConfigurationPropertyhttps://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_batch.CfnJobDefinition.LogConfigurationProperty.html
Other Information
No response
Acknowledgements
CDK version used
2.96.2
Environment details (OS name and version, etc.)
All OS
The text was updated successfully, but these errors were encountered: