Skip to content

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

Merged
mergify[bot] merged 17 commits intoaws:masterfrom
upparekh:upparekh/extensions-default-awslogs
Jan 13, 2022
Merged

feat(ecs-service-extensions): Enable default logging to CloudWatch for extensions (under feature flag)#17817
mergify[bot] merged 17 commits intoaws:masterfrom
upparekh:upparekh/extensions-default-awslogs

Conversation

@upparekh
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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