-
Notifications
You must be signed in to change notification settings - Fork 4k
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: No way to override aws-for-fluent-bit image #23288
Comments
+1 - I'm also looking for this functionality. |
You can use https://docs.aws.amazon.com/cdk/api/v1/docs/@aws-cdk_aws-ecs.FirelensLogRouter.html like this: new ecs.FirelensLogRouter(this, 'MyFirelensLogRouter', {
firelensConfig: {
type: ecs.FirelensLogRouterType.FLUENTBIT,
options: {
configFileType: ecs.FirelensConfigFileType.FILE,
configFileValue: "/fluent-bit/configs/minimize-log-loss.conf",
enableECSLogMetadata: true
}
},
image: ecs.ContainerImage.fromRegistry("public.ecr.aws/aws-observability/aws-for-fluent-bit:2.28.4"),
taskDefinition: this.taskDefinition,
containerName: 'FirelensLogRouter'
}) This is from within our |
We don't currently offer a way to directly configure this when using aws-cdk/packages/@aws-cdk/aws-ecs/lib/base/task-definition.ts Lines 787 to 804 in 7b7294c
For now, you can work around this using the |
Would it make sense to update this to use 'stable'? |
There is a feature request I reopened recently to default the whole thing to stable. Given that it broke again I think we should reconsider our default image. I think this feature request is distinct from adjusting the overall default to use the stable image, and both are valid requests. |
Describe the feature
I'm currently using the aws firelens log router on an ECS container, like so:
However, a recent issue with the container caused ECS services to recycle tasks non-stop:
aws/aws-for-fluent-bit#491
There doesn't appear to be any way to override the image tag that will be used when using this construct.
I also don't see a way to use an escape hatch or other method to choose a different SSM parameter for the log driver to use.
What is the recommended way to override the tag being used? Could an additional property be exposed on the LogDrivers.fireLens() to allow the setting of the tag?
Use Case
I'd like to be able to control the tag of the aws-for-fluent-bit image.
Proposed Solution
I don't have one.
Other Information
No response
Acknowledgements
CDK version used
2.53.0
Environment details (OS name and version, etc.)
The text was updated successfully, but these errors were encountered: