2 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
1
logging property in ContainerDefinitionOptions passed to ContainerDefinitionOptions.
This is where it is documented.
Sample Code(nodeJs):
taskDefinition.addContainer('Container', {
image: ecs.ContainerImage.fromEcrRepository(
respository,`1.0`),
logging: ecs.LogDrivers.awsLogs({ streamPrefix: 'my-log-group', logRetention: 30 }),
});
répondu il y a 2 ans
0
Finally figured out the logging option in add_container is the on that sends it to cloudwatch.
répondu il y a 2 ans
Contenus pertinents
- demandé il y a un an
- demandé il y a un an
- demandé il y a 2 mois
- AWS OFFICIELA mis à jour il y a 2 ans
Ty for the response. Was able to get this to work.