Skip to content
experimental: AWS-CDK library for fluentd log driver on ECS
TypeScript JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
.npmignore
.travis.yml
LICENSE
NOTICE
README.md
jest.config.js
package.json
renovate.json
tsconfig.json
tslint.json
yarn.lock

README.md

cdk-fluentd-log-driver

Build Status

cdk-fluentd-log-driver provides helper function that uses fluentd log driver to your ECS task definition.

Synopsis

import { ContainerImage, Ec2TaskDefinition } from "@aws-cdk/aws-ecs"
import { Stack } from "@aws-cdk/core";
import { FluentdLogDriver } from "@cohalz/cdk-fluentd-log-driver";

const stack = new Stack()
const taskDefinition = new Ec2TaskDefinition(stack, "TaskDefinition")

const logDriver = new FluentdLogDriver({
  fluentdAddress: "127.0.0.1:24224",
  fluentdMaxRetries: "3",
  fluentdRetryWait: "2",
  tag: "tag",
})

taskDefinition.addContainer("Container", {
  image: ContainerImage.fromRegistry("/aws/aws-example-app"),
  memoryLimitMiB: 2048,
  // Use a fluentd log driver
  logging: logDriver,
})

For available options, please refer to the docker docs.

You can’t perform that action at this time.