From aa1b3adf05d12ea12331155ebb3da84d55aa5bae Mon Sep 17 00:00:00 2001 From: Roshane Pascual Date: Mon, 18 Nov 2024 17:01:57 -0800 Subject: [PATCH 1/2] add info that retaining resources is not supported in sandbox --- .../add-aws-services/deletion-backup-resources/index.mdx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/pages/[platform]/build-a-backend/add-aws-services/deletion-backup-resources/index.mdx b/src/pages/[platform]/build-a-backend/add-aws-services/deletion-backup-resources/index.mdx index d1c468ed93e..7a55ac4b381 100644 --- a/src/pages/[platform]/build-a-backend/add-aws-services/deletion-backup-resources/index.mdx +++ b/src/pages/[platform]/build-a-backend/add-aws-services/deletion-backup-resources/index.mdx @@ -164,6 +164,12 @@ plan.addSelection("BackupPlanSelection", { For example, if you would like to retain a resource on stack deletion, you can use the `applyRemovalPolicy` property on the resource to add a retention policy. + + +Retaining resources on stack deletion is not supported in sandbox. + + + ```ts title="amplify/backend.ts" import { defineBackend } from "@aws-amplify/backend"; import { auth } from "./auth/resource"; From 67e2bee1654fcc84afce26deb03727d3b218fd0b Mon Sep 17 00:00:00 2001 From: Roshane Pascual Date: Tue, 19 Nov 2024 09:53:58 -0800 Subject: [PATCH 2/2] update wording to be specific to sandbox delete ignoring removal policies --- .../add-aws-services/deletion-backup-resources/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/[platform]/build-a-backend/add-aws-services/deletion-backup-resources/index.mdx b/src/pages/[platform]/build-a-backend/add-aws-services/deletion-backup-resources/index.mdx index 7a55ac4b381..4bdc9097752 100644 --- a/src/pages/[platform]/build-a-backend/add-aws-services/deletion-backup-resources/index.mdx +++ b/src/pages/[platform]/build-a-backend/add-aws-services/deletion-backup-resources/index.mdx @@ -166,7 +166,7 @@ For example, if you would like to retain a resource on stack deletion, you can u -Retaining resources on stack deletion is not supported in sandbox. +`ampx sandbox delete` ignores any resource removal policy and always deletes all resources.