diff --git a/src/pages/[platform]/build-a-backend/data/custom-business-logic/search-and-aggregate-queries/index.mdx b/src/pages/[platform]/build-a-backend/data/custom-business-logic/search-and-aggregate-queries/index.mdx index d495f63713c..0941d5e4115 100644 --- a/src/pages/[platform]/build-a-backend/data/custom-business-logic/search-and-aggregate-queries/index.mdx +++ b/src/pages/[platform]/build-a-backend/data/custom-business-logic/search-and-aggregate-queries/index.mdx @@ -148,8 +148,8 @@ const openSearchDomain = new opensearch.Domain( { version: opensearch.EngineVersion.OPENSEARCH_2_11, nodeToNodeEncryption: true, - // set removalPolicy to DESTROY for sandbox environemnt - // removalPolicy: RemovalPolicy.DESTROY, + // set removalPolicy to DESTROY to make sure the open search domain is deleted on stack deletion. + removalPolicy: RemovalPolicy.DESTROY, encryptionAtRest: { enabled: true }