Skip to content

Commit

Permalink
Make removal policy explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
moralesl committed Jun 20, 2024
1 parent 0bd9262 commit 604bf6b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions infrastructure/kinesis-load-testing-with-locust.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ export class KinesisLoadTestingWithLocustStack extends cdk.Stack {
const demoStream = new kinesis.Stream(this, "DemoStream", {
streamName: "DemoStream",
streamMode: kinesis.StreamMode.ON_DEMAND,

removalPolicy: cdk.RemovalPolicy.DESTROY, // Remove to clean up the environment
});

const locustLoadTestDirectory = new Asset(this, "LocustLoadTestDirectory", {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ Object {
},
"Resources": Object {
"DemoStream7DBE9115": Object {
"DeletionPolicy": "Delete",
"Properties": Object {
"Name": "DemoStream",
"RetentionPeriodHours": 24,
Expand All @@ -76,6 +77,7 @@ Object {
},
},
"Type": "AWS::Kinesis::Stream",
"UpdateReplacePolicy": "Delete",
},
"LoadtestingVPC470E256F": Object {
"Properties": Object {
Expand Down

0 comments on commit 604bf6b

Please sign in to comment.