Skip to content

Commit 1563caa

Browse files
authored
set redshift and neptune clusters removal policy to destroy (#1675)
1 parent 388d0a3 commit 1563caa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test_infra/stacks/databases_stack.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ def _setup_redshift(self) -> None:
232232
redshift_cluster = redshift.Cluster(
233233
self,
234234
"aws-sdk-pandas-redshift-cluster",
235+
removal_policy=RemovalPolicy.DESTROY,
235236
default_database_name=database,
236237
master_user=redshift.Login(
237238
master_username=self.db_username,
@@ -676,6 +677,7 @@ def _setup_neptune(self, iam_enabled: bool = False, port: int = 8182) -> None:
676677
cluster = neptune.DatabaseCluster(
677678
self,
678679
"aws-sdk-pandas-neptune-cluster",
680+
removal_policy=RemovalPolicy.DESTROY,
679681
vpc=self.vpc,
680682
instance_type=neptune.InstanceType.R5_LARGE,
681683
iam_authentication=iam_enabled,

0 commit comments

Comments
 (0)