-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Cloudtrail with sendToCloudWatchLogs: true, invalid Resource for Policy #1848
Labels
Comments
Tried workaround of let badPolicyResourceUndefined = trail.node.findChild('LogsRole/DefaultPolicy/Resource') as CfnPolicy;
badPolicyResourceUndefined.propertyOverrides.policyDocument = new PolicyDocument()
.addStatement((new PolicyStatement(PolicyStatementEffect.Allow))
.addAction('*')
.addAction('logs:CreateLogStream')
.addResource('*')); But got error bad
|
RomainMuller
added
@aws-cdk/aws-cloudtrail
Related to AWS CloudTrail
bug
This issue is a bug.
labels
Feb 25, 2019
RomainMuller
added a commit
that referenced
this issue
Feb 25, 2019
…tchLogs Sets `this.cloudWatchLogsGroupArn` before using it, such that a correct resource ARN is used in the policy generated for CloudTrail to be able to create and use the required log stream. Fixes #1848
4 tasks
@RomainMuller Thanks: I also found that the CloudTrail_log_stream_name_prefix created by cloudtrail is AWS:AccountId + CloudTrail + AWS:Region
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps: Enable CloudTrail Construct in Typescript CDK version 0.24.1
sendToCloudWatchLogs: false, : OK
sendToCloudWatchLogs: true, : Error in Resource name
Resource: undefined:log-stream:*
YAML for policy:
code:
YAML:
The text was updated successfully, but these errors were encountered: