@terraforge/core 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/dist/index.d.ts +339 -267
- package/dist/index.js +614 -252
- package/package.json +10 -3
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ The most used IaC solutions are slow & don't effectively leverage diffing to spe
|
|
|
12
12
|
Install with (NPM):
|
|
13
13
|
|
|
14
14
|
```
|
|
15
|
-
npm i @terraforge/core @terraforge/aws
|
|
15
|
+
npm i @terraforge/core @terraforge/terraform @terraforge/aws
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
## Example
|
|
@@ -52,10 +52,12 @@ This example illustrates how simple it is to define multi-stack resources withou
|
|
|
52
52
|
```ts
|
|
53
53
|
const app = new App('todo-app')
|
|
54
54
|
const storage = new Stack(app, 'storage')
|
|
55
|
-
const list = new aws.s3.Bucket(storage, 'list', {
|
|
55
|
+
const list = new aws.s3.Bucket(storage, 'todo-list', {
|
|
56
|
+
bucket: 'your-bucket-name'
|
|
57
|
+
})
|
|
56
58
|
|
|
57
59
|
const items = new Stack(app, 'items')
|
|
58
|
-
const todo = new aws.s3.BucketObject(items, 'item', {
|
|
60
|
+
const todo = new aws.s3.BucketObject(items, 'todo-item', {
|
|
59
61
|
bucket: list.bucket,
|
|
60
62
|
key: 'item-1',
|
|
61
63
|
content: JSON.stringify({
|