AwsLogDriverProps interface property streamPrefix should be required #1422
Labels
@aws-cdk/aws-ecs
Related to Amazon Elastic Container
feature-request
A feature should be added or improved.
The
AwsLogDriverProps
interface has a propertystreamPrefix
. This is currently not required by CDK, so you cancdk synth
and attempt tocdk deploy
the stack without specifying this property. However CloudFormation deployment will then fail with an error:Example code that reproduces the issue:
Ideally this
streamPrefix
property should be marked as required by CDK for Fargate task definitions such thatcdk synth
andcdk deploy
fail locally with an error message prior to sending the synthesized CF template off to CloudFormationAlternatively perhaps CDK could choose to automatically fill the
streamPrefix
with the container name, as this is a fairly logical default.The text was updated successfully, but these errors were encountered: