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

fix(logs): respect region when importing log group #18215

Merged
merged 9 commits into from
Jan 4, 2022

Conversation

kornicameister
Copy link
Contributor

When log group is imported it is crucial to preserve an information
about region where log group exists. Without that information it is not possible
to implement cross region logging.

fixes #18214


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

When log group is imported it is crucial to preserve an information
about region where log group exists. Without that information it is not possible
to implement cross region logging.

fixes aws#18214
@gitpod-io
Copy link

gitpod-io bot commented Dec 29, 2021

@kornicameister
Copy link
Contributor Author

@comcalvi what has changed in master setup that build here fails?

Copy link
Contributor

@skinny85 skinny85 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 @kornicameister! One comment about the test.

@mergify mergify bot dismissed skinny85’s stale review January 4, 2022 09:50

Pull request has been modified.

Copy link
Contributor

@skinny85 skinny85 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 @kornicameister! A few tiny changes that I'll apply myself.

packages/@aws-cdk/aws-logs/test/loggroup.test.ts Outdated Show resolved Hide resolved
packages/@aws-cdk/aws-logs/test/loggroup.test.ts Outdated Show resolved Hide resolved
packages/@aws-cdk/aws-logs/test/loggroup.test.ts Outdated Show resolved Hide resolved
packages/@aws-cdk/aws-logs/test/loggroup.test.ts Outdated Show resolved Hide resolved
packages/@aws-cdk/aws-logs/test/loggroup.test.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@skinny85 skinny85 left a comment

Choose a reason for hiding this comment

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

Thanks for the fix @kornicameister!

@kornicameister
Copy link
Contributor Author

LOL, I was just trying to pushfixes for your comments @skinny85 and been wondering why commit is rejected :D

@kornicameister
Copy link
Contributor Author

Anyway, I've just made a PR and fix is actually on you @skinny85 . I wouldn't be so fast if you didn't tell me exact API portion to look at. So thanks and cheers to you ! 👍

@skinny85
Copy link
Contributor

skinny85 commented Jan 4, 2022

My pleasure @kornicameister, but you did do a lot of work, it definitely wasn't just me. It was a good collaboration 🙂.

@kornicameister
Copy link
Contributor Author

My pleasure @kornicameister, but you did do a lot of work, it definitely wasn't just me. It was a good collaboration 🙂.

Likewise :-)

@mergify
Copy link
Contributor

mergify bot commented Jan 4, 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: 88bec73
  • 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 be909bc into aws:master Jan 4, 2022
@mergify
Copy link
Contributor

mergify bot commented Jan 4, 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).

@kornicameister kornicameister deleted the fix_18214 branch January 4, 2022 22:33
TikiTDO pushed a commit to TikiTDO/aws-cdk that referenced this pull request Feb 21, 2022
When log group is imported it is crucial to preserve an information
about region where log group exists. Without that information it is not possible
to implement cross region logging.

fixes aws#18214

----

*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-logs Related to Amazon CloudWatch Logs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(logs): Importing log group ignores region
4 participants