Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
components: respect removal policy
Browse files Browse the repository at this point in the history
closes #1016
  • Loading branch information
fwang committed Sep 19, 2024
1 parent 0a65585 commit 30fb505
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions platform/src/auto/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Link } from "../components/link";
import {
ResourceTransformationArgs,
interpolate,
mergeOptions,
runtime,
automation,
output,
Expand Down Expand Up @@ -45,10 +44,8 @@ function addTransformationToRetainResourcesOnDelete() {
"aws:dynamodb/table:Table",
].includes(args.type))
) {
return {
props: args.props,
opts: mergeOptions({ retainOnDelete: true }, args.opts),
};
args.opts.retainOnDelete = true;
return args;
}
return undefined;
});
Expand Down

0 comments on commit 30fb505

Please sign in to comment.