Skip to content

Commit

Permalink
add info that retaining resources is not supported in sandbox (#8100)
Browse files Browse the repository at this point in the history
* add info that retaining resources is not supported in sandbox

* update wording to be specific to sandbox delete ignoring removal policies
  • Loading branch information
rtpascual authored Nov 19, 2024
1 parent 56d6971 commit f4c9da3
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<Callout>

`ampx sandbox delete` ignores any resource removal policy and always deletes all resources.

</Callout>

```ts title="amplify/backend.ts"
import { defineBackend } from "@aws-amplify/backend";
import { auth } from "./auth/resource";
Expand Down

0 comments on commit f4c9da3

Please sign in to comment.