From 67ada77c8017cb87fea804834c9a24dfe7fc0442 Mon Sep 17 00:00:00 2001 From: jmb12686 Date: Tue, 21 Jul 2020 09:56:37 -0400 Subject: [PATCH] Update usage documentation --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index b29a4de..cf62f3f 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,15 @@ const selfDestruct = new SelfDestruct(this, "selfDestructor", { }); ``` +Be sure to add an ordering dependency on a high level base Construct in your stack. For example anchoring `SelfDestruct` to the `Vpc` ensures all resources in the stack will be destroyed prior to destroying itself. + +```javascript +const vpc = new ec2.Vpc(this, "VPC", { +}); + +vpc.node.addDependency(selfDestruct); +``` + ### Python Install using pip