Skip to content

Commit 032c7ce

Browse files
authored
updated removal policy
1 parent 10dbff7 commit 032c7ce

File tree

1 file changed

+2
-2
lines changed
  • src/pages/[platform]/build-a-backend/data/custom-business-logic/search-and-aggregate-queries

1 file changed

+2
-2
lines changed

src/pages/[platform]/build-a-backend/data/custom-business-logic/search-and-aggregate-queries/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,8 @@ const openSearchDomain = new opensearch.Domain(
231231
{
232232
version: opensearch.EngineVersion.OPENSEARCH_2_11,
233233
nodeToNodeEncryption: true,
234-
// set removalPolicy to DESTROY for sandbox environemnt
235-
// removalPolicy: RemovalPolicy.DESTROY,
234+
// set removalPolicy to DESTROY to make sure the open search domain is deleted on stack deletion.
235+
removalPolicy: RemovalPolicy.DESTROY,
236236
encryptionAtRest: {
237237
enabled: true,
238238
},

0 commit comments

Comments
 (0)