Skip to content

Commit f4c9da3

Browse files
authored
add info that retaining resources is not supported in sandbox (#8100)
* add info that retaining resources is not supported in sandbox * update wording to be specific to sandbox delete ignoring removal policies
1 parent 56d6971 commit f4c9da3

File tree

1 file changed

+6
-0
lines changed
  • src/pages/[platform]/build-a-backend/add-aws-services/deletion-backup-resources

1 file changed

+6
-0
lines changed

src/pages/[platform]/build-a-backend/add-aws-services/deletion-backup-resources/index.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,12 @@ plan.addSelection("BackupPlanSelection", {
164164

165165
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.
166166

167+
<Callout>
168+
169+
`ampx sandbox delete` ignores any resource removal policy and always deletes all resources.
170+
171+
</Callout>
172+
167173
```ts title="amplify/backend.ts"
168174
import { defineBackend } from "@aws-amplify/backend";
169175
import { auth } from "./auth/resource";

0 commit comments

Comments
 (0)