You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,8 +102,8 @@ Once a budget is hit, all resources within the construct on which this budget ha
102
102
103
103
While `CostLimit` aspect can be applied on any node type, budget capabilities are only enabled on a subset of resources listed below. Cost generated by resources other than the one specified are not taken into account with regards to the budget limit. Only resources listed below are disabled once budget is reached.
> Max AWS EC2 instances spending rate with default AWS Quotas: $63 / hour / region
5
+
6
+
## Usage
7
+
8
+
You can simply replace your `Instance` native CDK import statement by this package exported `Instance` construct.
9
+
10
+
```diff
11
+
- import { Instance } from "@aws-cdk-lib/aws-ec2";
12
+
+ import { Instance } from "@revant-io/cdk-cost-limit";
13
+
```
14
+
15
+
The `Instance` construct accepts the exact same props at the AWS CDK Instance construct (refer to the [AWS CDK dedicated documentation](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.Instance.html) for a list of all supported props). In addition to those native props, it accepts the following:
0 commit comments