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

feat(ecs-service-extensions): Enable default logging to CloudWatch for extensions (under feature flag) #17817

Merged
merged 17 commits into from
Jan 13, 2022

Conversation

upparekh
Copy link
Contributor

@upparekh upparekh commented Dec 2, 2021


This PR adds a default awslogs log driver to the application container. We first check if any other observability extensions (e.g. FirelensExtension) have already been added to the service. It will add the log driver only if no such loggers have been enabled.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@gitpod-io
Copy link

gitpod-io bot commented Dec 2, 2021

@upparekh upparekh self-assigned this Dec 2, 2021
@github-actions github-actions bot added the @aws-cdk/aws-cloudwatch Related to Amazon CloudWatch label Dec 2, 2021
@upparekh upparekh added @aws-cdk-containers/ecs-service-extensions Related to ecs-service-extensions package and removed @aws-cdk/aws-cloudwatch Related to Amazon CloudWatch labels Dec 2, 2021
@upparekh upparekh requested a review from madeline-k December 2, 2021 19:45
@github-actions github-actions bot added the @aws-cdk/aws-cloudwatch Related to Amazon CloudWatch label Dec 2, 2021
@upparekh upparekh removed the @aws-cdk/aws-cloudwatch Related to Amazon CloudWatch label Dec 2, 2021
Copy link
Contributor

@iamhopaul123 iamhopaul123 left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@upparekh upparekh added pr/work-in-progress This PR is a draft and needs further work. and removed pr/work-in-progress This PR is a draft and needs further work. labels Dec 4, 2021
@upparekh upparekh changed the title chore(ecs-service-extensions): Enable default logging to CloudWatch for extensions chore(ecs-service-extensions): Enable default logging to CloudWatch for extensions (under feature flag) Dec 16, 2021
@github-actions github-actions bot added the @aws-cdk/aws-cloudwatch Related to Amazon CloudWatch label Dec 16, 2021
@upparekh upparekh removed the @aws-cdk/aws-cloudwatch Related to Amazon CloudWatch label Dec 16, 2021
@upparekh upparekh changed the title chore(ecs-service-extensions): Enable default logging to CloudWatch for extensions (under feature flag) fix(ecs-service-extensions): Enable default logging to CloudWatch for extensions (under feature flag) Dec 16, 2021
@github-actions github-actions bot added the @aws-cdk/aws-cloudwatch Related to Amazon CloudWatch label Dec 16, 2021
@upparekh upparekh removed the @aws-cdk/aws-cloudwatch Related to Amazon CloudWatch label Dec 16, 2021
Copy link
Contributor

@madeline-k madeline-k left a comment

Choose a reason for hiding this comment

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

The user should be able to use this feature explicitly without adding the feature flag. The feature flag should just be there to prevent breaking changes when a user upgrades, and makes no code changes. The feature flag should not block the logGroup parameter entirely from being used. Hopefully that makes sense.

Said another way: Customers must take some action to opt-in to this behavior, it should not happen spontaneously when they upgrade. So, they can either turn on the feature flag, or set the logGroup property.

@madeline-k madeline-k changed the title fix(ecs-service-extensions): Enable default logging to CloudWatch for extensions (under feature flag) feat(ecs-service-extensions): Enable default logging to CloudWatch for extensions (under feature flag) Jan 6, 2022
@github-actions github-actions bot added the @aws-cdk/aws-cloudwatch Related to Amazon CloudWatch label Jan 6, 2022
@mergify mergify bot dismissed madeline-k’s stale review January 11, 2022 18:29

Pull request has been modified.

@mergify mergify bot dismissed madeline-k’s stale review January 12, 2022 20:53

Pull request has been modified.

Copy link
Contributor

@madeline-k madeline-k 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! 😄

@mergify
Copy link
Contributor

mergify bot commented Jan 12, 2022

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: 4d9300a
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify mergify bot merged commit 06666f4 into aws:master Jan 13, 2022
@mergify
Copy link
Contributor

mergify bot commented Jan 13, 2022

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

TikiTDO pushed a commit to TikiTDO/aws-cdk that referenced this pull request Feb 21, 2022
…r extensions (under feature flag) (aws#17817)

----
This PR adds a default `awslogs` log driver to the application container. We first check if any other observability extensions (e.g. `FirelensExtension`) have already been added to the service. It will add the log driver only if no such loggers have been enabled.

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-cloudwatch Related to Amazon CloudWatch @aws-cdk-containers/ecs-service-extensions Related to ecs-service-extensions package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants