Skip to main content
Knowledge Base

How do I enable Fluentbit logs in a ECS Fargate container

Answer

Hi, I'm looking to do something like this https://docs.aws.amazon.com/AmazonECS/latest/developerguide/firelens-example-taskdefs.html#firelens-example-forward in a Fargate service. I'm using the service example in the Ref Arch, but I can't find the proper way to add a new container to the task definition. Thanks.

@fsanzdev please take a look, there should be an `ecs_task_container_definitions` variable that allows you to specify the container definition json