-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(logs): grants don't work on imported LogGroups
In CloudFormation, `{ Fn::GetAtt: [MyLogGroup, Arn] }` always returned the ARN with a `:*` appended, presumably so you could stick the returned value directly into an IAM policy and get the result you wanted (doing something to Log Groups usually entails doing something to the Log *Streams* inside them). The CDK construct did not do anything special, leading to imports done without a `:*` at the end having incorrect permissions. This change makes the behavior between imported and constructed Log Groups consistent. Fixes #7096.
- Loading branch information
Showing
3 changed files
with
104 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters