Skip to content

Commit a5689e9

Browse files
committed
Enable removal policy DESTROY on e2e test for kinesis streams and SQS queues to avoid exceeding account limit.
1 parent 03e5b11 commit a5689e9

File tree

1 file changed

+2
-0
lines changed
  • powertools-e2e-tests/src/test/java/software/amazon/lambda/powertools/testutils

1 file changed

+2
-0
lines changed

powertools-e2e-tests/src/test/java/software/amazon/lambda/powertools/testutils/Infrastructure.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ private Stack createStackWithLambda() {
290290
.queueName(queue)
291291
.visibilityTimeout(Duration.seconds(timeout * 6))
292292
.retentionPeriod(Duration.seconds(timeout * 6))
293+
.removalPolicy(RemovalPolicy.DESTROY)
293294
.build();
294295
DeadLetterQueue.builder()
295296
.queue(sqsQueue)
@@ -314,6 +315,7 @@ private Stack createStackWithLambda() {
314315
.create(e2eStack, "KinesisStream")
315316
.streamMode(StreamMode.ON_DEMAND)
316317
.streamName(kinesisStream)
318+
.removalPolicy(RemovalPolicy.DESTROY)
317319
.build();
318320

319321
stream.grantRead(function);

0 commit comments

Comments
 (0)