Skip to content

Commit

Permalink
Fix test code
Browse files Browse the repository at this point in the history
  • Loading branch information
t0yv0 committed Nov 19, 2024
1 parent 5c58be2 commit 841fb62
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions integration/kinesis/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ class KinesisStack extends pulumicdk.Stack {
constructor(app: pulumicdk.App, id: string, options?: pulumicdk.StackOptions) {
super(app, id, options);

const kStream = new kinesis.Stream(this, 'MyFirstStream', {
streamName: 'my-stream',
const kStream = new kinesis.Stream(this, 'my-stream', {
shardCount: 3,
retentionPeriod: Duration.hours(24),
})
Expand All @@ -19,9 +18,11 @@ class KinesisStack extends pulumicdk.Stack {
}
}

new pulumicdk.App('app', (scope: pulumicdk.App) => {
const app = new pulumicdk.App('app', (scope: pulumicdk.App) => {
const stack = new KinesisStack(scope, 'teststack');
return {
kinesisStreamName: stack.kinesisStreamName,
};
});

export const kinesisStreamName = app.outputs['kinesisStreamName'];

0 comments on commit 841fb62

Please sign in to comment.