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
I have two questions about the aws-kinesisfirehose-s3 pattern (please let me know if it makes more sense to split them into different issues):
Is there a reason why kinesisFirehoseProps's type is kinesisfirehose.CfnDeliveryStreamProps | any? This is the same type definition as aws-iot-kinesisfirehose-s3, but not aws-kinesisfirehose-s3-and-kinesisanalytics.
Because of that, VSCode cannot show me the properties from CfnDeliveryStreamProps:
Kinesis Firehose supports two types (DirectPut and KinesisStreamAsSource). As of now, it isn't very straightforward to use KinesisStreamAsSource, as the configuration for it (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-kinesisstreamsourceconfiguration.html) requires the customer to pass the ARN of the role that provides access to the source Kinesis data stream (which is not available until after the construct is created). Does it make sense to create a separate pattern (e.g. aws-kinesisstreams-kinesisfirehose-s3) or modify this one to handle both scenarios?
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered:
kinesisFirehoseProps's type is kinesisfirehose.CfnDeliveryStreamProps | any to allow for user to override the extendedS3DestinationConfiguration properties without requiring to specify the bucketArn which is created by the construct. For example, this test case will not even compile if | any is dropped. Probably the same should apply for aws-kinesisfirehose-s3-and-kinesisanalytics pattern as well.
Agree, it makes sense to create a new pattern aws-kinesisstreams-kinesisfirehose-s3 but internally it should still make use of aws-kinesisfirehose-s3 pattern similar to aws-iot-kinesisfirehose-s3
1. `kinesisFirehoseProps`'s type is `kinesisfirehose.CfnDeliveryStreamProps | any` to allow for user to override the `extendedS3DestinationConfiguration` properties without requiring to specify the `bucketArn` which is created by the construct. For example, this [test case](https://github.com/awslabs/aws-solutions-constructs/blob/master/source/patterns/%40aws-solutions-constructs/aws-kinesisfirehose-s3/test/test.kinesisfirehose-s3.test.ts#L82) will not even compile if ` | any` is dropped. Probably the same should apply for `aws-kinesisfirehose-s3-and-kinesisanalytics` pattern as well.
I get it, that makes sense. It's a bit unfortunate, but I can create the props separately to get intellisense.
Hopefully this will improve when there's a L2 construct for Firehose.
2. Agree, it makes sense to create a new pattern `aws-kinesisstreams-kinesisfirehose-s3` but internally it should still make use of `aws-kinesisfirehose-s3` pattern similar to `aws-iot-kinesisfirehose-s3`
I'll create a separate ticket for this new pattern.
I have two questions about the
aws-kinesisfirehose-s3
pattern (please let me know if it makes more sense to split them into different issues):kinesisFirehoseProps
's type iskinesisfirehose.CfnDeliveryStreamProps | any
? This is the same type definition asaws-iot-kinesisfirehose-s3
, but notaws-kinesisfirehose-s3-and-kinesisanalytics
.aws-solutions-constructs/source/patterns/@aws-solutions-constructs/aws-iot-kinesisfirehose-s3/lib/index.ts
Line 39 in 50d3e9c
aws-solutions-constructs/source/patterns/@aws-solutions-constructs/aws-kinesisfirehose-s3-and-kinesisanalytics/lib/index.ts
Line 33 in 50d3e9c
Because of that, VSCode cannot show me the properties from
CfnDeliveryStreamProps
:DirectPut
andKinesisStreamAsSource
). As of now, it isn't very straightforward to useKinesisStreamAsSource
, as the configuration for it (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-kinesisstreamsourceconfiguration.html) requires the customer to pass the ARN of the role that provides access to the source Kinesis data stream (which is not available until after the construct is created). Does it make sense to create a separate pattern (e.g.aws-kinesisstreams-kinesisfirehose-s3
) or modify this one to handle both scenarios?This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: