File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
src/pages/[platform]/build-a-backend/data/custom-business-logic/search-and-aggregate-queries Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -148,13 +148,24 @@ const openSearchDomain = new opensearch.Domain(
148
148
{
149
149
version: opensearch .EngineVersion .OPENSEARCH_2_11 ,
150
150
nodeToNodeEncryption: true ,
151
+ // set removalPolicy to DESTROY for sandbox environemnt
152
+ // removalPolicy: RemovalPolicy.DESTROY,
151
153
encryptionAtRest: {
152
154
enabled: true
153
155
}
154
156
}
155
157
);
156
158
// highlight-end
157
159
```
160
+ <Callout >
161
+
162
+ Important considerations:
163
+
164
+ We recommend enabling the ` removalPolicy ` for sandbox environments.
165
+ By default, OpenSearch instances are not deleted when you run ` npx ampx delete ` , as the default removal policy is set to retain the resource.
166
+
167
+ </Callout >
168
+
158
169
159
170
## Step 3: Setting Up Zero ETL from DynamoDB to OpenSearch
160
171
@@ -220,6 +231,8 @@ const openSearchDomain = new opensearch.Domain(
220
231
{
221
232
version: opensearch .EngineVersion .OPENSEARCH_2_11 ,
222
233
nodeToNodeEncryption: true ,
234
+ // set removalPolicy to DESTROY for sandbox environemnt
235
+ // removalPolicy: RemovalPolicy.DESTROY,
223
236
encryptionAtRest: {
224
237
enabled: true ,
225
238
},
You can’t perform that action at this time.
0 commit comments