-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
(aws-ec2/FlowLog): L2 construct FlowLog can't configure kinesis data firehose as LogDestination #27275
Comments
Thanks for the request, makes sense! |
I want to implement this feature! |
@ymhiroki Are you already working on this? If not, I'll take it :) |
I want to implement this feature!
I'm sorry for the delay, but I've just started the implementation. |
The CloudFormation template ([AWS::EC2::FlowLog](https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-flowlog.html#cfn-ec2-flowlog-logdestination)) and the L1 Construct ([CfnFlowLog](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.CfnFlowLog.html#logdestination)) support Kinesis Data Firehose as a destination for VPC Flow Logs. This PR implements `toKinesisDataFirehose` method to set the Kinesis Data Firehose delivery stream as a destination for VPC Flow Logs. [aws-kinesisfirehose-alpha module](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-kinesisfirehose-alpha-readme.html) is yet alpha module, so the construct gets an ARN of the delivery stream to specify the destination. The same technique is used in [DataProtectionPolicy](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataProtectionPolicy.html). This PR doesn't support [cross-account access](https://docs.aws.amazon.com/vpc/latest/tgw/flow-logs-kinesis.html) between the VPC and the delivery stream in the `toKinesisDataFirehose` method. The cross-account access is supported later to implement a more simple use case at first. Closes #27275 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
Describe the feature
Currently there are only 2 supported properties for FlowLogDestination:
However the CloudFormation template and L1 Construct(CfnFlowLog) allow 1 more option:
So we'd like to enable to configure Kinesis Data Firehose as LogDestination in L2 construct FlowLog as same as CloudWatch Logs and S3.
Use Case
Same as CloudFormation
Proposed Solution
Implement the method
toKinesisDataFirehose()
as same as the CloudWatch Logs and S3 in the FlowLogDestination class.Other Information
No response
Acknowledgements
CDK version used
2.97.0
Environment details (OS name and version, etc.)
macOS 13.6
The text was updated successfully, but these errors were encountered: