aws / aws/aws-cdk

(ecs): default to stable fluentbit image instead of latest

Open
#16,403 15 comments 0 reactions 0 assignees View on GitHub
@aws-cdk/aws-ecs breaking-change effort/small feature-request p2
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
2d 3h
Merged PRs (30d)
83

Description

## :question: General Issue

### The Question
I am affected by a bug in Fluentbit that causes DNS problems when using firelens log driver, almost with datadog. (https://github.com/aws/aws-for-fluent-bit/issues/233). As of now, working solution is to not use latest image and use 2.19.0, which I have tested working.

My problem is that using CDK I don't see how I can set to use a fixed fluentbit version in the "log-router" container, as that container definition is created by cloudformation when we specify the logrouter in CDK/CFN in the app container taskdef, the system adds that log-router sidecar container with the version set to latest automaticly.

Its possible to change that sidecar container image from latest to 2.19.0?

### Environment
- **CDK CLI Version:** 1.121.0 (build 026cb8f)
- **Module Version:** 1.121.0
- **Node.js Version:** 14
- **OS:** macOS
- **Language (Version):** TypeScript

### Other information
logging: ecs.LogDrivers.firelens({
options: {
Name: 'datadog',
provider: 'ecs',
TLS: 'on',
dd_message_key: 'log',
dd_service: 'test_service,
dd_source: 'java',
dd_tags: 'env:test',
},
secretOptions: {
apikey: ecs.Secret.fromSsmParameter(
REDACTED
),
},
}),

Thanks for your time!!

Contributor guide

Open the contributing guide

Research direction

Start at ecs.LogDrivers.firelens and trace how the ECS task definition produces the log-router sidecar in CloudFormation. Determine whether the image should default to a stable version or be configurable, then verify that synthesized CloudFormation uses the selected image.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, typescript
Domain
cloud, infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.