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(lambda): propagate tags to log group #26049

Closed
wants to merge 87 commits into from
Closed

Conversation

colifran
Copy link
Contributor

This PR implements the ability to allow tags to propagate to the lambda log group via an optional property called 'propagateTagsToLogGroup' that can be set when a lambda function is configured. This functionality was implemented using the existing custom resource setup to allow users to set a custom log retention for a lambda log group.

Closes #17533


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

colifran added 27 commits May 31, 2023 05:56
… lambda resource provider for setting tags for log group

Signed-off-by: Francis <colifran@amazon.com>
Signed-off-by: Francis <colifran@amazon.com>
Signed-off-by: Francis <colifran@amazon.com>
Signed-off-by: Francis <colifran@amazon.com>
…lect log propagation when it is set - unit testing added for enabling and disabling log propagation

Signed-off-by: Francis <colifran@amazon.com>
Signed-off-by: Francis <colifran@amazon.com>
Signed-off-by: Francis <colifran@amazon.com>
…group if tagsToSet is not an empty object

Signed-off-by: Francis <colifran@amazon.com>
Signed-off-by: Francis <colifran@amazon.com>
Signed-off-by: Francis <colifran@amazon.com>
Signed-off-by: Francis <colifran@amazon.com>
…eater than 0

Signed-off-by: Francis <colifran@amazon.com>
Signed-off-by: Francis <colifran@amazon.com>
…source provider being given correct permissions after it is already created

Signed-off-by: Francis <colifran@amazon.com>
…pdated unit tests

Signed-off-by: Francis <colifran@amazon.com>
…pecific log groups

Signed-off-by: Francis <colifran@amazon.com>
Signed-off-by: Francis <colifran@amazon.com>
Signed-off-by: Francis <colifran@amazon.com>
Signed-off-by: Francis <colifran@amazon.com>
Signed-off-by: Francis <colifran@amazon.com>
Signed-off-by: Francis <colifran@amazon.com>
Signed-off-by: Francis <colifran@amazon.com>
@gitpod-io
Copy link

gitpod-io bot commented Jun 20, 2023

@aws-cdk-automation aws-cdk-automation requested a review from a team June 20, 2023 00:30
@github-actions github-actions bot added the effort/medium Medium work item – several days of effort label Jun 20, 2023
colifran and others added 10 commits July 12, 2023 14:07
Signed-off-by: Francis <colifran@amazon.com>
Signed-off-by: Francis <colifran@amazon.com>
Signed-off-by: Francis <colifran@amazon.com>
…tiple log retention resources section of log retention unit tests

Signed-off-by: Francis <colifran@amazon.com>
Signed-off-by: Francis <colifran@amazon.com>
Signed-off-by: Francis <colifran@amazon.com>
Signed-off-by: Francis <colifran@amazon.com>
Signed-off-by: Francis <colifran@amazon.com>
@colifran colifran force-pushed the colifran/log-group-tags branch from 739cd92 to 2013faf Compare July 23, 2023 18:40
colifran added 2 commits July 23, 2023 12:41
Signed-off-by: Francis <colifran@amazon.com>
Signed-off-by: Francis <colifran@amazon.com>
@mrgrain mrgrain dismissed corymhall’s stale review August 2, 2023 13:49

changes have been addressed. PR approved by me.

@mergify
Copy link
Contributor

mergify bot commented Aug 2, 2023

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

Copy link
Contributor

@mrgrain mrgrain left a comment

Choose a reason for hiding this comment

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

I want to solve the issues of deleted log groups before me merge this.

Related to #21820

@mrgrain mrgrain added the pr/do-not-merge This PR should not be merged at this time. label Aug 2, 2023
@mrgrain mrgrain marked this pull request as draft August 2, 2023 13:58
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 23a30d1
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS. effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p1 pr/do-not-merge This PR should not be merged at this time.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lambda: allow propagating Function tags to LogGroup
4 participants