I'm using the CDK Kinesis Firehose construct as be...
# sst
e
I'm using the CDK Kinesis Firehose construct as below but it doesn't manage to deploy the stack giving me a "Dynamic Partitioning Namespaces can only be part of a prefix expression when Dynamic Partitioning is enabled." error when trying to create the AWS:KinesisFirehose:DeliveryStream . I tried googling this without success and can't find where in CDK I could enable dynamic partitioning. Any idea anyone ??
Copy code
import * as firehose from "@aws-cdk/aws-kinesisfirehose-alpha";
import * as firehose_destinations from "@aws-cdk/aws-kinesisfirehose-destinations-alpha";
...
    const auditBucket = new Bucket(this, 'Audit')
    const cdkAuditBucket = auditBucket.cdk.bucket
    const firehoseDestination = new firehose_destinations.S3Bucket(cdkAuditBucket, { dataOutputPrefix: 'site!{partitionKeyFromQuery:id_site}/!{timestamp:yyyy}/!{timestamp:MM}/', errorOutputPrefix: 'firehoseErrors/' })

    const kinesisFirehose = new firehose.DeliveryStream(this, 'Audit Firehose', { destinations: [firehoseDestination] });
    config['AuditKinesisDeliveryStreamName'] = kinesisFirehose.deliveryStreamName
And my issues go beyond that because even if I remove the destination options for dynamic partitioning it still fails deploying the stack with an already exists error (even though I checked the delivery stream didn't exist before deploying (and it does still exist after the deploy rollback, bizarre...)
Copy code
CREATE_FAILED | AWS::KinesisFirehose::DeliveryStream | AuditFirehoseABE28C61 | Resource handler returned message: "Firehose DEV-ERIK-dwam-back-my-stack-AuditFirehoseABE28C61-ovUGntV2xqdN under accountId XXX already exists (Service: Firehose, Status Code: 400, Request ID: f6022f59-8d8c-ac1a-ad1f-a21e664c7009, Extended Request ID: rFNmGztnFI/nrwTVobH/Nljo/U7An+a+O7AZWR7LRvCiYu4/3pHU0ibbnYKw57dRijhCfVyUWn9vNp0DJi9AZXzCxk3U9k3Q)" (RequestToken: 891e75c0-e09e-2a36-6f5a-5ffe4189cdee, HandlerErrorCode: AlreadyExists)