2 Risposte
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
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 }),
});
con risposta 2 anni fa
0
Finally figured out the logging option in add_container is the on that sends it to cloudwatch.
con risposta 2 anni fa
Contenuto pertinente
- AWS UFFICIALEAggiornata 3 anni fa
- AWS UFFICIALEAggiornata 2 anni fa
Ty for the response. Was able to get this to work.