Skip to content

Commit

Permalink
Update usage documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jmb12686 committed Jul 21, 2020
1 parent ea09638 commit 67ada77
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 67ada77

Please sign in to comment.