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-1: add configurable logging drivers #1005

Merged
merged 1 commit into from
Jul 30, 2020

Conversation

samuelkarp
Copy link
Contributor

@samuelkarp samuelkarp commented Jul 29, 2020

Issue number:

#815

Description of changes:

The new ecs.logging-drivers setting controls the list of logging drivers available for use with ECS. The defaults are "json-file", "awslogs", and "none". Other logging drivers (such as those installed via a plugin) can be enabled. The default set of logging drivers can be reduced or removed to implement policy for allowable logging drivers in a cluster.

Testing done:

Launched an instance, saw it register with the appropriate capabilities. Ran a task using the awslogs driver, validated that logs appeared in CloudWatch Logs with the correct group and stream. Used apiclient to mutate the list of logging drivers, saw changes rendered in the ECS config file and reflected in DescribeContainerInstances.

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

@samuelkarp samuelkarp requested review from jahkeup and srgothi92 July 29, 2020 22:33
Copy link
Member

@jahkeup jahkeup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thanks for exposing the logging settings.

I have one question regarding the default set, see review.

sources/models/src/aws-ecs-1/override-defaults.toml Outdated Show resolved Hide resolved
The new ecs.logging-drivers setting controls the list of logging drivers
available for use with ECS.  The defaults are "json-file", "awslogs", and
"none".  Other logging drivers (such as those installed via a plugin) can be
enabled.  The default set of logging drivers can be reduced or removed to
implement policy for allowable logging drivers in a cluster.
@samuelkarp samuelkarp force-pushed the ecs-logging-drivers branch from 4fe820c to 9b7955a Compare July 30, 2020 20:14
@samuelkarp samuelkarp merged commit c52ecc5 into bottlerocket-os:develop Jul 30, 2020
@samuelkarp samuelkarp deleted the ecs-logging-drivers branch July 30, 2020 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants