-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Automatically refer to the appropriate, regional FireLens image with addFirelensLogRouter() #7366
Comments
Thanks for bringing this to our attention! Definitely let us know if you're willing to work on the PR; otherwise someone from our team will pick it up. |
The package @aws-cdk/aws-ecs exports the function You can view usage here: I will say that it takes a lot of discovery to figure out how to override the default logDriver to enable json line parsing. Definitely either more documentation or a simpler API would be helpful. |
This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
keep |
Q: I can't find any docs for So I think the AWS ECS FireLens constructs are supposed to live here now: https://github.com/cdklabs/cdk-ecs-service-extensions/ But then the function still seems to only be here: Are there no docs for this function? Or do I not know the right place to look? Is it not intended for end-user direct use? |
Hello @PettitWesley, If you want to use it in TS/JS, you can, see the documentation in our source code: https://github.com/aws/aws-cdk/blob/main/packages/%40aws-cdk/aws-ecs/lib/firelens-log-router.ts#L149-L155 I think this feature request is still valid, and this function is only a workaround for TS/JS users. |
@madeline-k How would I add it to the JSII assembly so that it will become a real official function? |
Only Classes, Interfaces, and Enums are included. So it would need to be added to a relevant class. Edit: Or possibly a new class made for this? I don't have a strong opinion yet, would need to spend some time diving into it. |
The documentation suggests using Amazon's own ECR images for the FireLens container. However,
image
is a required property.It would be a nice convenience if CDK could determine the destination stack's region and automatically use the proper
ecr.Repository.fromRepositoryArn()
behavior.Use Case
Today, I can get this behavior manually, but I had to generate the reference myself:
Proposed Solution
Ideally,
image
onFirelensLogRouterDefinitionOptions
is an optional parameter and defaults to the proper ECR image from this table in the docs.Other
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: