You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you provide an existing log bucket in a BucketProps object, for example in aws-eventbridge-kinesisfirehose-s3, that bucket should be used in the stack as the log bucket for the bucket created by the stack. Instead, the prop value is ignored and the construct still creates a new bucket.
Reproduction Steps
// logBucket is an s3.Bucket resource created somewhere in the stack
new EventbridgeToKinesisFirehoseToS3(stack, 'evtfhss3-existing-log-bucket', {
eventRuleProps: {
schedule: events.Schedule.rate(Duration.minutes(5))
},
bucketProps: {
removalPolicy: RemovalPolicy.DESTROY,
serverAccessLogsBucket: logBucket, // <- key attribute
},
logGroupProps: {
removalPolicy: RemovalPolicy.DESTROY
},
});
The resulting template should have 2 buckets - the existing log bucket and the new firehose destination bucket, with logging set up appropriately. Instead, there are three buckets: a log bucket created by the construct, the new firehose destination bucket that is configured to log to the construct created log bucket, and the existing bucket (logBucket) that is not referenced by the pattern in the construct.
Error Log
Environment
CDK CLI Version :
CDK Framework Version:
AWS Solutions Constructs Version :
OS :
Language :
Other
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered:
When you provide an existing log bucket in a BucketProps object, for example in aws-eventbridge-kinesisfirehose-s3, that bucket should be used in the stack as the log bucket for the bucket created by the stack. Instead, the prop value is ignored and the construct still creates a new bucket.
Reproduction Steps
The resulting template should have 2 buckets - the existing log bucket and the new firehose destination bucket, with logging set up appropriately. Instead, there are three buckets: a log bucket created by the construct, the new firehose destination bucket that is configured to log to the construct created log bucket, and the existing bucket (logBucket) that is not referenced by the pattern in the construct.
Error Log
Environment
Other
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: