Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(aws-ecs): configFileValue should be optional in FirelensOptions #16594

Closed
dan-lind opened this issue Sep 22, 2021 · 5 comments
Closed

(aws-ecs): configFileValue should be optional in FirelensOptions #16594

dan-lind opened this issue Sep 22, 2021 · 5 comments
Labels
@aws-cdk/aws-ecs Related to Amazon Elastic Container bug This issue is a bug. effort/small Small work item – less than a day of effort p2

Comments

@dan-lind
Copy link
Contributor

dan-lind commented Sep 22, 2021

configFileValue is defined as a required value in FirelensOptions

Reproduction Steps

configFileValue should be marked as optional here

readonly configFileValue: string;

What did you expect to happen?

I expect that a config like this example for Datadog is valid
https://github.com/aws-samples/amazon-ecs-firelens-examples/blob/mainline/examples/fluent-bit/datadog/task-definition.json

What actually happened?

Above config doesn't work since configFileValue is mandatory.

Environment

  • **Framework Version: v1.124

I'd be happy to provide an MR for this

This is 🐛 Bug Report

@github-actions github-actions bot added the @aws-cdk/aws-ecs Related to Amazon Elastic Container label Sep 22, 2021
@madeline-k madeline-k added bug This issue is a bug. effort/small Small work item – less than a day of effort p2 labels Nov 24, 2021
@madeline-k madeline-k removed their assignment Nov 24, 2021
@marcelmindemann
Copy link

I would like to raise awareness for this bug again. We are running into it, and the workaround is quite a lot of effort and also costly. All we want to do is disabling ECS metadata addition, but setting this option on the FirelensOptions then requires filling configFileValue aswell. This means that instead of simply using the AWS-provided FireLens image and the auto-generated config, one has to

  1. create their own fluentbit config file
  2. bake that into their custom fluentbit image
  3. build a CI pipeline to push config changes to ECR

@PettitWesley
Copy link
Contributor

Fixed via this: #20636

@PettitWesley
Copy link
Contributor

I think it only made it into CDK v2 tho: https://github.com/aws/aws-cdk/releases/tag/v2.34.0

@PettitWesley
Copy link
Contributor

@kaizencc Can you close this issue? I lack perms.

@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-ecs Related to Amazon Elastic Container bug This issue is a bug. effort/small Small work item – less than a day of effort p2
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants