Using Console
Using CLI
<TASK_DEFINITION_ARN>
, <CONTAINER_NAME>
, <LOG_GROUP_NAME>
, <AWS_REGION>
, and <LOG_STREAM_PREFIX>
with the appropriate values for your ECS Task Definition.
Using Python
pip install boto3
.
'task_definition_arn'
in the script with the actual ARN of your ECS Task Definition that needs log configuration enabled.