Skip to content

Commit

Permalink
test: Update snapshots for Kinesis stream mode
Browse files Browse the repository at this point in the history
Since v1.139.0 the `StreamMode` of a Kinesis stream is `PROVISIONED` by default.

The stream mode can be one of two options:

- On-demand - data streams with an on-demand mode require no capacity planning and automatically scale to handle gigabytes of write and read throughput per minute. With the on-demand mode, Kinesis Data Streams automatically manages the shards in order to provide the necessary throughput.
- Provisioned - for the data streams with a provisioned mode, you must specify the number of shards for the data stream. The total capacity of a data stream is the sum of the capacities of its shards. You can increase or decrease the number of shards in a data stream as needed.

Provisioned matches our use of Kinesis today, so the default makes sense.

See:
  - aws/aws-cdk#18221
  - https://docs.aws.amazon.com/streams/latest/dev/how-do-i-size-a-stream.html
  • Loading branch information
akash1810 committed Jan 26, 2022
1 parent 5c424f7 commit 11b7aeb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/constructs/stack-set/__snapshots__/stack-set.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ Object {
}
]
},
\\"StreamModeDetails\\": {
\\"StreamMode\\": \\"PROVISIONED\\"
},
\\"Tags\\": [
{
\\"Key\\": \\"gu:cdk:version\\",
Expand Down
3 changes: 3 additions & 0 deletions src/patterns/__snapshots__/kinesis-lambda.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ Object {
"EncryptionType": "KMS",
"KeyId": "alias/aws/kinesis",
},
"StreamModeDetails": Object {
"StreamMode": "PROVISIONED",
},
"Tags": Array [
Object {
"Key": "App",
Expand Down

0 comments on commit 11b7aeb

Please sign in to comment.