Skip to content

Commit 10dbff7

Browse files
Update src/pages/[platform]/build-a-backend/data/custom-business-logic/search-and-aggregate-queries/index.mdx
Co-authored-by: Christopher Sundersingh <[email protected]>
1 parent ce70ca7 commit 10dbff7

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
@@ -148,8 +148,8 @@ const openSearchDomain = new opensearch.Domain(
148148
{
149149
version: opensearch.EngineVersion.OPENSEARCH_2_11,
150150
nodeToNodeEncryption: true,
151-
// set removalPolicy to DESTROY for sandbox environemnt
152-
// removalPolicy: RemovalPolicy.DESTROY,
151+
// set removalPolicy to DESTROY to make sure the open search domain is deleted on stack deletion.
152+
removalPolicy: RemovalPolicy.DESTROY,
153153
encryptionAtRest: {
154154
enabled: true
155155
}

0 commit comments

Comments
 (0)