Skip to content

Commit

Permalink
Update Kinesis Stream buffering interval limits
Browse files Browse the repository at this point in the history
According to aws updates of December 2023, Kinesis Stream buffering interval can be as low as five seconds, however that's not yet reflected in the CDK
https://aws.amazon.com/about-aws/whats-new/2023/12/amazon-kinesis-data-firehose-zero-buffering/
  • Loading branch information
abogaziah committed Jan 5, 2024
1 parent 10ed194 commit 17ee7cc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ export function createBufferingHints(
}

const intervalInSeconds = interval?.toSeconds() ?? 300;
if (intervalInSeconds < 60 || intervalInSeconds > 900) {
throw new Error(`Buffering interval must be between 60 and 900 seconds. Buffering interval provided was ${intervalInSeconds} seconds.`);
if (intervalInSeconds < 5 || intervalInSeconds > 900) {
throw new Error(`Buffering interval must be between 5 and 900 seconds. Buffering interval provided was ${intervalInSeconds} seconds.`);
}
const sizeInMBs = size?.toMebibytes() ?? 5;
if (sizeInMBs < 1 || sizeInMBs > 128) {
Expand Down

0 comments on commit 17ee7cc

Please sign in to comment.