@intentius/behold 0.30.1 → 0.31.0
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/AGENTS.md +475 -16
- package/README.md +25 -19
- package/demos.json +14 -9
- package/dist/cli.js +54900 -26771
- package/example-carve/README.md +19 -23
- package/example-carve/app/package.json +1 -1
- package/example-carve/app/src/carved.ts +3 -3
- package/example-carve/carve-report.json +1 -1
- package/example-carve/{legacy-tf → tf-root}/terraform.tfstate +1 -1
- package/example-choudoufu-estate/README.md +7 -0
- package/example-choudoufu-estate/chant.workspace.json +1 -1
- package/example-choudoufu-estate/scripts/choudoufu-down.sh +2 -1
- package/example-choudoufu-estate/scripts/choudoufu-up.sh +10 -3
- package/example-terraform-estate/README.md +32 -5
- package/example-terraform-estate/chant.workspace.json +1 -1
- package/example-terraform-estate/recorded/adoption/platform.json +72 -0
- package/example-terraform-estate/recorded/adoption/prod.json +224 -0
- package/example-terralith/README.md +1 -1
- package/example-three-cloud/README.md +111 -18
- package/example-three-cloud/aws/Pulumi.yaml +15 -0
- package/example-three-cloud/aws/index.ts +174 -0
- package/example-three-cloud/aws/package-lock.json +2725 -0
- package/example-three-cloud/aws/package.json +14 -0
- package/example-three-cloud/aws/tsconfig.json +17 -0
- package/example-three-cloud/azure/main.tf +48 -0
- package/example-three-cloud/azure/site.tf +104 -0
- package/example-three-cloud/chant.config.json +9 -0
- package/example-three-cloud/chant.workspace.json +30 -4
- package/example-three-cloud/dns/chant.config.ts +26 -1
- package/example-three-cloud/dns/src/records.component.ts +32 -6
- package/example-three-cloud/package-lock.json +48 -27
- package/example-three-cloud/package.json +8 -6
- package/example-three-cloud/scripts/emulators-up.sh +28 -1
- package/example-three-cloud/scripts/front-door.ts +679 -86
- package/package.json +13 -6
- package/web/adopt-pulumi.js +114 -0
- package/web/adopt-pulumi.test.js +28 -0
- package/web/adopt.js +203 -0
- package/web/adopt.test.js +27 -0
- package/web/app.js +614 -19
- package/web/carve-steps.js +1 -1
- package/web/carve-steps.test.js +2 -2
- package/web/change-set-overlay.js +12 -5
- package/web/change-set-overlay.test.js +22 -0
- package/web/drift-stream.js +241 -0
- package/web/drift-stream.test.js +146 -0
- package/web/edge-weight.d.ts +1 -1
- package/web/edge-weight.js +5 -1
- package/web/edge-weight.test.js +19 -0
- package/web/embed.js +2 -2
- package/web/event-help-modal.js +18 -12
- package/web/event-help-modal.test.js +28 -1
- package/web/graph-query.js +180 -0
- package/web/graph-query.test.js +49 -0
- package/web/graph.html +107 -0
- package/web/index-diff.js +109 -0
- package/web/index-diff.test.js +39 -0
- package/web/index.html +55 -0
- package/web/kiosk-ask-layout.js +85 -0
- package/web/kiosk-ask-layout.test.js +83 -0
- package/web/kiosk-ask-tips.js +477 -0
- package/web/kiosk-ask-tips.test.js +372 -0
- package/web/kiosk-ask.js +774 -0
- package/web/kiosk-ask.test.js +593 -0
- package/web/kiosk-banner.js +108 -0
- package/web/kiosk-banner.test.js +72 -0
- package/web/kiosk-center-cards.test.js +110 -0
- package/web/kiosk-estate-scene.js +267 -0
- package/web/kiosk-estate-scene.test.js +21 -0
- package/web/kiosk-event-help.js +4 -1
- package/web/kiosk-graph-pane.js +63 -0
- package/web/kiosk-graph-pane.test.js +105 -0
- package/web/kiosk-light-frame.js +197 -0
- package/web/kiosk-light.js +547 -0
- package/web/kiosk-light.test.js +297 -0
- package/web/kiosk-member-kind.test.js +140 -0
- package/web/kiosk-metrics.js +7 -4
- package/web/kiosk-modal-sticky.test.js +2 -1
- package/web/kiosk-popover.js +4 -1
- package/web/kiosk-refit.test.js +81 -0
- package/web/kiosk-reset.js +49 -0
- package/web/kiosk-reset.test.js +11 -0
- package/web/kiosk-shot.js +40 -2
- package/web/kiosk-shot.test.js +23 -1
- package/web/kiosk-side.js +296 -0
- package/web/kiosk-side.test.js +249 -0
- package/web/kiosk-vendor.js +85 -7
- package/web/kiosk-vendor.test.js +9 -9
- package/web/kiosk-watch.js +20 -4
- package/web/kiosk-watch.test.js +15 -1
- package/web/kiosk.html +153 -1
- package/web/kiosk.js +252 -27
- package/web/kiosk.test.js +25 -1
- package/web/member-kind.js +31 -0
- package/web/small-stage.test.js +4 -0
- package/web/template-apps.js +245 -0
- package/web/template-apps.test.js +252 -0
- package/web/templates.js +285 -0
- package/web/templates.test.js +155 -0
- package/web/terragucci-change.js +30 -13
- package/web/terragucci-lifecycle.js +112 -62
- package/web/terragucci-lifecycle.test.js +29 -1
- package/web/terragucci-timeline.js +39 -2
- package/web/terragucci-timeline.test.js +42 -1
- package/web/tool-mark.js +4 -4
- package/web/tool-mark.test.js +1 -1
- package/web/vendors/atmos.svg +1 -0
- package/web/vendors/chant.svg +1 -0
- package/web/vendors/choudoufu.svg +1 -0
- package/web/vendors/terragrunt.svg +9 -0
- package/web/vendors/terragucci.svg +1 -0
- package/example-three-cloud/aws/chant.config.ts +0 -8
- package/example-three-cloud/aws/site.component.ts +0 -13
- package/example-three-cloud/aws/src/site.ts +0 -27
- package/example-three-cloud/azure/chant.config.ts +0 -1
- package/example-three-cloud/azure/src/site.component.ts +0 -13
- package/example-three-cloud/azure/src/site.ts +0 -18
- package/web/vendors/choudoufu-128.png +0 -0
- package/web/vendors/choudoufu-64.png +0 -0
- /package/example-carve/{legacy-tf → tf-root}/cdn.tf +0 -0
- /package/example-carve/{legacy-tf → tf-root}/compute.tf +0 -0
- /package/example-carve/{legacy-tf → tf-root}/floci-override.tf.disabled +0 -0
- /package/example-carve/{legacy-tf → tf-root}/modules/cdn/main.tf +0 -0
- /package/example-carve/{legacy-tf → tf-root}/naming.tf +0 -0
- /package/example-carve/{legacy-tf → tf-root}/network.tf +0 -0
- /package/example-carve/{legacy-tf → tf-root}/observability.tf +0 -0
- /package/example-carve/{legacy-tf → tf-root}/outputs.tf +0 -0
- /package/example-carve/{legacy-tf → tf-root}/storage.tf +0 -0
- /package/example-carve/{legacy-tf → tf-root}/versions.tf +0 -0
package/example-carve/README.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
# example-carve, the mixed estate the
|
|
1
|
+
# example-carve, the mixed estate the carve demo runs on
|
|
2
2
|
|
|
3
|
-
A
|
|
4
|
-
|
|
5
|
-
the line while the camera is running.
|
|
3
|
+
A mixed estate. `app/` is chant and `tf-root/` is Terraform. Both manage one
|
|
4
|
+
AWS account, and the walkthrough hands one resource from Terraform to chant.
|
|
6
5
|
|
|
7
6
|
Run it:
|
|
8
7
|
|
|
@@ -22,7 +21,7 @@ reason is on screen; a blank graph is the one outcome that's never allowed.
|
|
|
22
21
|
example-carve/
|
|
23
22
|
app/ a small chant project — the pieces already carved
|
|
24
23
|
carveout/ where Emit and Bridge write, in a copy (gitignored)
|
|
25
|
-
|
|
24
|
+
tf-root/ the Terraform root
|
|
26
25
|
terraform.tfstate synthetic state (fake account, fake ARNs)
|
|
27
26
|
floci-override.tf.disabled provider endpoints for the --live tier, inert
|
|
28
27
|
modules/cdn/ a local module, so module.cdn resolves offline
|
|
@@ -39,7 +38,7 @@ on the source.
|
|
|
39
38
|
## The estate is mixed from the first frame
|
|
40
39
|
|
|
41
40
|
`app/src/carved.ts` holds a CloudWatch log group and an SSM parameter that came
|
|
42
|
-
out of `
|
|
41
|
+
out of `tf-root/` last month. The source says so, and `tf-root/cdn.tf` still
|
|
43
42
|
carries the other half of that carve: a `data "aws_ssm_parameter"` block reading
|
|
44
43
|
back the value chant now owns. That is the data-source rewrite `carve bridge`
|
|
45
44
|
generates, sitting in the estate a month later and working.
|
|
@@ -54,8 +53,8 @@ identical at 0.52.1). Reproduce it with:
|
|
|
54
53
|
|
|
55
54
|
```sh
|
|
56
55
|
npm install -D @cdktn/hcl2json # once, anywhere on your PATH resolution
|
|
57
|
-
chant carve advise --from example-carve/
|
|
58
|
-
--state example-carve/
|
|
56
|
+
chant carve advise --from example-carve/tf-root \
|
|
57
|
+
--state example-carve/tf-root/terraform.tfstate
|
|
59
58
|
```
|
|
60
59
|
|
|
61
60
|
| score | address | band | why | role in the script |
|
|
@@ -69,9 +68,9 @@ chant carve advise --from example-carve/legacy-tf \
|
|
|
69
68
|
| 43 | `aws_security_group.lambda` | leave in Terraform | 2 inbound, 2 outbound, tier 2, data present | |
|
|
70
69
|
| 42 | `aws_subnet.private_a` | leave in Terraform | 3 inbound, 1 output, 2 outbound, data present | |
|
|
71
70
|
| 42 | `aws_subnet.private_b` | leave in Terraform | 3 inbound, 1 output, 2 outbound, data present | |
|
|
72
|
-
| 32 | `aws_vpc.main` | leave in Terraform | 5 inbound, 1 output, 1 outbound |
|
|
71
|
+
| 32 | `aws_vpc.main` | leave in Terraform | 5 inbound, 1 output, 1 outbound | |
|
|
73
72
|
| 0 | `aws_network_acl.private` | leave in Terraform | no known native mapping | |
|
|
74
|
-
| 0 | `random_pet.suffix` | leave in Terraform | no known native mapping |
|
|
73
|
+
| 0 | `random_pet.suffix` | leave in Terraform | no known native mapping | |
|
|
75
74
|
|
|
76
75
|
Bands: 80-100 carve now, 50-79 carve with boundary edits, 0-49 leave in Terraform.
|
|
77
76
|
|
|
@@ -81,7 +80,7 @@ The scoring model is `100 - 12*inbound - 4*outbound - 4*outputs - 15*(tier-1) -
|
|
|
81
80
|
resource is a boundary edge too now, `bridge: "tf-output-rewrite"`, because
|
|
82
81
|
carving that resource means rewriting the output the same way carving a
|
|
83
82
|
resource with an inbound reference means adding a data source. Every number
|
|
84
|
-
above is that arithmetic on the edges in `
|
|
83
|
+
above is that arithmetic on the edges in `tf-root/`, which is why the estate
|
|
85
84
|
is shaped the way it is:
|
|
86
85
|
|
|
87
86
|
- The bucket has one inbound edge — `aws_lambda_function.api`'s
|
|
@@ -113,8 +112,8 @@ without shelling anything. JSON carries no comments, so this is its header:
|
|
|
113
112
|
regenerate it, unchanged, with
|
|
114
113
|
|
|
115
114
|
```sh
|
|
116
|
-
chant carve advise --from example-carve/
|
|
117
|
-
--state example-carve/
|
|
115
|
+
chant carve advise --from example-carve/tf-root \
|
|
116
|
+
--state example-carve/tf-root/terraform.tfstate \
|
|
118
117
|
--report example-carve/carve-report.json
|
|
119
118
|
```
|
|
120
119
|
|
|
@@ -148,7 +147,7 @@ itself, into `app/carveout/` in the copy; beat 6 is copy buttons, on purpose.
|
|
|
148
147
|
3. **The cut edge.** Highlight the two dependencies the carve severs:
|
|
149
148
|
`aws_lambda_function.api` reads the bucket name, and the `assets_bucket`
|
|
150
149
|
output reads it too. Two one-line rewrites, not one.
|
|
151
|
-
4. **Emit.** `carve emit --from
|
|
150
|
+
4. **Emit.** `carve emit --from tf-root --state tf-root/terraform.tfstate
|
|
152
151
|
--select aws_s3_bucket.assets` adopts the bucket from state into typed chant
|
|
153
152
|
source, folds both sub-resources into the carve set AS native props
|
|
154
153
|
(chant#1637's fold, applied), and writes a boundary report. Nothing is
|
|
@@ -193,13 +192,12 @@ tier guarantees the first thirty seconds of the video.
|
|
|
193
192
|
|
|
194
193
|
**`--live` is the full video.** `behold demo carve --live` boots a scratch
|
|
195
194
|
Floci (`behold-carve-floci`, its own port, deleted on exit), arms
|
|
196
|
-
`
|
|
195
|
+
`tf-root/floci-override.tf.disabled` (see its header) into the demo copy, and
|
|
197
196
|
`terraform apply -target`s the starred resources into it, so the tfstate the
|
|
198
197
|
advisor reads is one terraform really wrote. At Handoff the stepper gains a
|
|
199
198
|
read-only **terraform plan** button: before `state rm` it shows a no-op, after
|
|
200
199
|
it the carved bucket is simply gone from Terraform's world — `0 to destroy`.
|
|
201
|
-
The
|
|
202
|
-
never blinked."
|
|
200
|
+
The bucket moved from Terraform to chant with no downtime.
|
|
203
201
|
|
|
204
202
|
The observe beat is footage now, not caption: after Emit, "▶ watch chant read
|
|
205
203
|
it live" runs `chant lifecycle diff prod --live` in the carveout with the
|
|
@@ -229,7 +227,7 @@ rules on source the advisor called clean. It is fixed now.
|
|
|
229
227
|
|
|
230
228
|
`chant lint` on the emitted project passes with warnings. `chant build` still
|
|
231
229
|
fails, but on one rule: WAW042, no bucket policy denying non-TLS requests.
|
|
232
|
-
That is not a carve-tooling gap — grep `
|
|
230
|
+
That is not a carve-tooling gap — grep `tf-root/` for
|
|
233
231
|
`aws_s3_bucket_policy` and there isn't one. The Terraform never declared a
|
|
234
232
|
TLS-deny policy for this bucket, in any form; chant's post-synth checks
|
|
235
233
|
noticed the moment the resource had a native representation to check. Nothing
|
|
@@ -237,11 +235,9 @@ here would show up scanning the `.tf` by eye, because there is nothing to
|
|
|
237
235
|
find — only an absence.
|
|
238
236
|
|
|
239
237
|
Verified against chant 0.44.7. The walkthrough's Emit beat still shows `lint`,
|
|
240
|
-
not `build`, the step's "why lint and not build?" note
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
found a policy gap Terraform never noticed" is the honest line to close the
|
|
244
|
-
video on.
|
|
238
|
+
not `build`, and the step's "why lint and not build?" note gives the reason on
|
|
239
|
+
screen: chant's policy check flagged a missing TLS-deny policy on the bucket.
|
|
240
|
+
Adding one in Terraform fixes it too.
|
|
245
241
|
|
|
246
242
|
## Values
|
|
247
243
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "behold-example-carve-app",
|
|
3
3
|
"private": true,
|
|
4
4
|
"type": "module",
|
|
5
|
-
"description": "The chant half of behold's carve demo estate — the pieces already peeled out of ../
|
|
5
|
+
"description": "The chant half of behold's carve demo estate — the pieces already peeled out of ../tf-root.",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "./node_modules/.bin/chant build src --lexicon aws -o template.json"
|
|
8
8
|
},
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { LogGroup, SsmParameter } from "@intentius/chant-lexicon-aws";
|
|
2
2
|
|
|
3
|
-
// These two came out of ../
|
|
3
|
+
// These two came out of ../tf-root last month, in the first pass of the
|
|
4
4
|
// migration. Both were carved the same way:
|
|
5
5
|
//
|
|
6
|
-
// chant carve emit --from ../
|
|
6
|
+
// chant carve emit --from ../tf-root --state ../tf-root/terraform.tfstate \
|
|
7
7
|
// --select aws_cloudwatch_log_group.api --output .
|
|
8
8
|
// terraform state rm aws_cloudwatch_log_group.api
|
|
9
9
|
//
|
|
@@ -19,7 +19,7 @@ export const apiLogs = new LogGroup({
|
|
|
19
19
|
RetentionInDays: 30,
|
|
20
20
|
});
|
|
21
21
|
|
|
22
|
-
// Was `aws_ssm_parameter.assets_cdn_domain` in ../
|
|
22
|
+
// Was `aws_ssm_parameter.assets_cdn_domain` in ../tf-root. The surviving
|
|
23
23
|
// Terraform reads it back through a `data "aws_ssm_parameter"` block — the
|
|
24
24
|
// data-source patch `carve bridge` writes for every inbound edge a carve cuts.
|
|
25
25
|
export const assetsCdnDomain = new SsmParameter({
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"lineage": "00000000-0000-4000-8000-000000000000",
|
|
6
6
|
"outputs": {
|
|
7
7
|
"_fixture_note": {
|
|
8
|
-
"value": "SYNTHETIC. Hand-written for behold's carve demo estate (#254) — never produced by a real terraform apply. The account id is 000000000000 and every ARN, id and hostname in this file is fake. `chant carve advise --state` and `chant carve emit --state` read it as plain JSON, so no terraform binary and no cloud call is involved. The --live tier of the walkthrough replaces it with a state terraform really wrote, by applying
|
|
8
|
+
"value": "SYNTHETIC. Hand-written for behold's carve demo estate (#254) — never produced by a real terraform apply. The account id is 000000000000 and every ARN, id and hostname in this file is fake. `chant carve advise --state` and `chant carve emit --state` read it as plain JSON, so no terraform binary and no cloud call is involved. The --live tier of the walkthrough replaces it with a state terraform really wrote, by applying tf-root into a scratch Floci (see floci-override.tf.disabled).",
|
|
9
9
|
"type": "string"
|
|
10
10
|
},
|
|
11
11
|
"api_function_name": {
|
|
@@ -44,5 +44,12 @@ the monolith's card for it reads *owned by tlmig-sample-team-a*, and
|
|
|
44
44
|
`/api/choudoufu/split?plan=split.json&receipt=1` says `moved`. Apply team-a
|
|
45
45
|
afterwards to bring its VPC up, and team-b's read resolves.
|
|
46
46
|
|
|
47
|
+
`chant.workspace.json` pins the terraform lexicon at chant 0.124.58, the
|
|
48
|
+
release behold depends on (`CHANT_RELEASE` in src/chant-release.ts,
|
|
49
|
+
behold#1005), and the demo copy is re-pinned at whichever lexicon is installed
|
|
50
|
+
beside behold. Streaming drift card by card and the drift record overlay need
|
|
51
|
+
that release; on an older chant the stream start is refused with the version
|
|
52
|
+
it needs.
|
|
53
|
+
|
|
47
54
|
`bash scripts/choudoufu-down.sh` removes the container. The `.terraform/`
|
|
48
55
|
directories and the record stores are gitignored.
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
# and no other (behold's scratch discipline, src/scratch.ts). The estate
|
|
4
4
|
# copies stay — they are yours to edit; the next choudoufu-up.sh re-applies.
|
|
5
5
|
set -euo pipefail
|
|
6
|
-
|
|
6
|
+
# behold#1032: the name choudoufu-up.sh used, from the same variable.
|
|
7
|
+
CONTAINER="${BEHOLD_CHOUDOUFU_FLOCI_CONTAINER:-behold-choudoufu-floci}"
|
|
7
8
|
docker rm -f "$CONTAINER" >/dev/null 2>&1 || true
|
|
8
9
|
echo "choudoufu-estate demo: ${CONTAINER} removed."
|
|
@@ -18,10 +18,17 @@
|
|
|
18
18
|
set -euo pipefail
|
|
19
19
|
cd "$(dirname "$0")/.."
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
# behold#1032: name, port and image come from the environment, so a second
|
|
22
|
+
# copy can run beside the first. demos.json's spawnEnv reads the same port
|
|
23
|
+
# variable, so behold's choudoufu spawns follow it; choudoufu-down.sh reads
|
|
24
|
+
# the same container variable.
|
|
25
|
+
: "${BEHOLD_CHOUDOUFU_FLOCI_CONTAINER:=behold-choudoufu-floci}"
|
|
26
|
+
: "${BEHOLD_CHOUDOUFU_FLOCI_PORT:=4650}"
|
|
23
27
|
# The image the live-mv workbench measures against (choudoufu's live/floci-image).
|
|
24
|
-
|
|
28
|
+
: "${BEHOLD_CHOUDOUFU_FLOCI_IMAGE:=ghcr.io/lex00/floci@sha256:a39185cc3971d0188663d61043cb038dff1260d8a975b1aa72c4e2bb1feac3cb}"
|
|
29
|
+
CONTAINER="$BEHOLD_CHOUDOUFU_FLOCI_CONTAINER"
|
|
30
|
+
PORT="$BEHOLD_CHOUDOUFU_FLOCI_PORT"
|
|
31
|
+
IMAGE="$BEHOLD_CHOUDOUFU_FLOCI_IMAGE"
|
|
25
32
|
|
|
26
33
|
if ! docker info >/dev/null 2>&1; then
|
|
27
34
|
echo "choudoufu-estate demo: Docker is not running — start Docker and re-run." >&2
|
|
@@ -93,7 +93,7 @@ naming both packages, the ranges behold declares, where it looked, and the line
|
|
|
93
93
|
that puts them back:
|
|
94
94
|
|
|
95
95
|
```sh
|
|
96
|
-
npm install @intentius/chant-lexicon-terraform@^0.124.
|
|
96
|
+
npm install @intentius/chant-lexicon-terraform@^0.124.58 @cdktn/hcl2json@^0.24.0
|
|
97
97
|
```
|
|
98
98
|
|
|
99
99
|
The estate is a declared chant workspace, and chant reads a member's kind from
|
|
@@ -105,15 +105,42 @@ copy and sets the copy's pin to that version (#484). It says so as it loads:
|
|
|
105
105
|
your own declared workspace is different: install the pinned lexicon in its
|
|
106
106
|
root, the way `chant workspace check` asks.
|
|
107
107
|
|
|
108
|
+
The pin in `chant.workspace.json` names chant 0.124.58, the release behold
|
|
109
|
+
depends on (`CHANT_RELEASE` in src/chant-release.ts, behold#1005), so a plain
|
|
110
|
+
`npm ci` beside behold installs what it pins. That release also carries what
|
|
111
|
+
promote's dry run on a real root with a `terraform.tfstate` and the drift
|
|
112
|
+
record overlay need. The demo copy is re-pinned at whichever lexicon is
|
|
113
|
+
installed beside behold.
|
|
114
|
+
|
|
115
|
+
## Adopting a root into choudoufu (#999)
|
|
116
|
+
|
|
117
|
+
The panel's **Adopt** tab offers each root adoption into choudoufu, the engine
|
|
118
|
+
tier, through `chant workspace promote <root> --state <file>`: what the root
|
|
119
|
+
gains there, what it does not, and the report of what adopting would claim.
|
|
120
|
+
Each resource in the root's state is listed with its fate. VERIFIED and
|
|
121
|
+
DRIFTED resources are claimed (choudoufu stamps its two marker tags on them
|
|
122
|
+
after approval); MISSING, UNTAGGABLE and UNADMITTED_TYPE resources are left
|
|
123
|
+
out, each with choudoufu's reason.
|
|
124
|
+
|
|
125
|
+
This estate has no state file and no cloud behind it, so the reports are
|
|
126
|
+
recorded: `recorded/adoption/prod.json` (25 resources, 17 claimed) and
|
|
127
|
+
`recorded/adoption/platform.json` (6, 4 claimed), written by hand to the shape
|
|
128
|
+
`chant workspace promote <root> --state <file> --dry-run --json` prints. The
|
|
129
|
+
live ids and fates in them are an example, not a measurement. The tab labels
|
|
130
|
+
them recorded and starts nothing. On a real root with a `terraform.tfstate`,
|
|
131
|
+
the tab runs promote's dry run for the report, and its Start button runs the
|
|
132
|
+
gated command, which records a pending gate and writes nothing until a person
|
|
133
|
+
approves it.
|
|
134
|
+
|
|
108
135
|
## Not the carve demo
|
|
109
136
|
|
|
110
137
|
`behold demo carve` also involves Terraform and answers a different question.
|
|
111
138
|
This estate asks **what is in my Terraform** — draw it, box it by root, tell the
|
|
112
|
-
roots from the modules. The carve demo asks **
|
|
113
|
-
`chant carve advise`
|
|
114
|
-
|
|
139
|
+
roots from the modules. The carve demo asks **which resources chant could also manage**:
|
|
140
|
+
`chant carve advise` scores each resource and the walkthrough hands one to
|
|
141
|
+
chant.
|
|
115
142
|
|
|
116
|
-
|
|
143
|
+
This estate draws your Terraform as it is. There is no chant project beside it, no
|
|
117
144
|
peelability score on any card, and no stepper.
|
|
118
145
|
|
|
119
146
|
[#381]: https://github.com/INTENTIUS/behold/issues/381
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"outcome": "dry-run",
|
|
3
|
+
"member": "platform",
|
|
4
|
+
"from": "terraform",
|
|
5
|
+
"to": "choudoufu",
|
|
6
|
+
"ran": [
|
|
7
|
+
{
|
|
8
|
+
"label": "choudoufu live-check",
|
|
9
|
+
"exitCode": 0
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"label": "choudoufu live-import (report)",
|
|
13
|
+
"exitCode": 0
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"adoption": {
|
|
17
|
+
"estate": "platform",
|
|
18
|
+
"state": "terraform.tfstate",
|
|
19
|
+
"entries": [
|
|
20
|
+
{
|
|
21
|
+
"address": "aws_kms_key.estate",
|
|
22
|
+
"type": "aws_kms_key",
|
|
23
|
+
"status": "VERIFIED",
|
|
24
|
+
"liveId": "1234abcd-12ab-34cd-56ef-1234567890ab",
|
|
25
|
+
"detail": "The live object matches the state's recorded attributes.",
|
|
26
|
+
"claimed": true
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"address": "aws_kms_alias.estate",
|
|
30
|
+
"type": "aws_kms_alias",
|
|
31
|
+
"status": "UNTAGGABLE",
|
|
32
|
+
"liveId": "alias/waterline-prod-estate",
|
|
33
|
+
"detail": "aws_kms_alias has no tags argument in the provider's schema, so there is nowhere on it to carry an ownership marker. It is migrated as an untaggable type is: its identity is recorded in the estate's record store when one is configured.",
|
|
34
|
+
"claimed": false
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"address": "aws_cloudwatch_log_group.audit",
|
|
38
|
+
"type": "aws_cloudwatch_log_group",
|
|
39
|
+
"status": "VERIFIED",
|
|
40
|
+
"liveId": "/waterline-prod/audit",
|
|
41
|
+
"detail": "The live object matches the state's recorded attributes.",
|
|
42
|
+
"claimed": true
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"address": "aws_iam_policy.boundary",
|
|
46
|
+
"type": "aws_iam_policy",
|
|
47
|
+
"status": "VERIFIED",
|
|
48
|
+
"liveId": "arn:aws:iam::111122223333:policy/waterline-prod-boundary",
|
|
49
|
+
"detail": "The live object matches the state's recorded attributes.",
|
|
50
|
+
"claimed": true
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"address": "aws_iam_role.deploy",
|
|
54
|
+
"type": "aws_iam_role",
|
|
55
|
+
"status": "DRIFTED",
|
|
56
|
+
"liveId": "waterline-prod-deploy",
|
|
57
|
+
"detail": "The live object differs from the state's recorded attributes: max_session_duration. Verification does not fix drift; a live-plan after stamping will show it.",
|
|
58
|
+
"claimed": true
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"address": "aws_iam_role_policy_attachment.deploy_boundary",
|
|
62
|
+
"type": "aws_iam_role_policy_attachment",
|
|
63
|
+
"status": "UNTAGGABLE",
|
|
64
|
+
"liveId": "waterline-prod-deploy-20261025120000000000000001",
|
|
65
|
+
"detail": "aws_iam_role_policy_attachment has no tags argument in the provider's schema, so there is nowhere on it to carry an ownership marker. It is migrated as an untaggable type is: its identity is recorded in the estate's record store when one is configured.",
|
|
66
|
+
"claimed": false
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
"claimed": 4,
|
|
70
|
+
"total": 6
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
{
|
|
2
|
+
"outcome": "dry-run",
|
|
3
|
+
"member": "prod",
|
|
4
|
+
"from": "terraform",
|
|
5
|
+
"to": "choudoufu",
|
|
6
|
+
"ran": [
|
|
7
|
+
{
|
|
8
|
+
"label": "choudoufu live-check",
|
|
9
|
+
"exitCode": 0
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"label": "choudoufu live-import (report)",
|
|
13
|
+
"exitCode": 0
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"adoption": {
|
|
17
|
+
"estate": "prod",
|
|
18
|
+
"state": "terraform.tfstate",
|
|
19
|
+
"entries": [
|
|
20
|
+
{
|
|
21
|
+
"address": "aws_vpc.main",
|
|
22
|
+
"type": "aws_vpc",
|
|
23
|
+
"status": "VERIFIED",
|
|
24
|
+
"liveId": "vpc-0a1b2c3d4e5f60718",
|
|
25
|
+
"detail": "The live object matches the state's recorded attributes.",
|
|
26
|
+
"claimed": true
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"address": "aws_internet_gateway.main",
|
|
30
|
+
"type": "aws_internet_gateway",
|
|
31
|
+
"status": "VERIFIED",
|
|
32
|
+
"liveId": "igw-0b2c3d4e5f6071829",
|
|
33
|
+
"detail": "The live object matches the state's recorded attributes.",
|
|
34
|
+
"claimed": true
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"address": "aws_subnet.public_a",
|
|
38
|
+
"type": "aws_subnet",
|
|
39
|
+
"status": "VERIFIED",
|
|
40
|
+
"liveId": "subnet-01a2b3c4d5e6f7081",
|
|
41
|
+
"detail": "The live object matches the state's recorded attributes.",
|
|
42
|
+
"claimed": true
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"address": "aws_subnet.public_b",
|
|
46
|
+
"type": "aws_subnet",
|
|
47
|
+
"status": "VERIFIED",
|
|
48
|
+
"liveId": "subnet-02b3c4d5e6f708192",
|
|
49
|
+
"detail": "The live object matches the state's recorded attributes.",
|
|
50
|
+
"claimed": true
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"address": "aws_subnet.private_a",
|
|
54
|
+
"type": "aws_subnet",
|
|
55
|
+
"status": "DRIFTED",
|
|
56
|
+
"liveId": "subnet-03c4d5e6f70819203",
|
|
57
|
+
"detail": "The live object differs from the state's recorded attributes: map_public_ip_on_launch. Verification does not fix drift; a live-plan after stamping will show it.",
|
|
58
|
+
"claimed": true
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"address": "aws_route_table.public",
|
|
62
|
+
"type": "aws_route_table",
|
|
63
|
+
"status": "VERIFIED",
|
|
64
|
+
"liveId": "rtb-0d4e5f60718293a4b",
|
|
65
|
+
"detail": "The live object matches the state's recorded attributes.",
|
|
66
|
+
"claimed": true
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"address": "aws_route_table_association.public_a",
|
|
70
|
+
"type": "aws_route_table_association",
|
|
71
|
+
"status": "UNTAGGABLE",
|
|
72
|
+
"liveId": "rtbassoc-0e5f60718293a4b5c",
|
|
73
|
+
"detail": "aws_route_table_association has no tags argument in the provider's schema, so there is nowhere on it to carry an ownership marker. It is migrated as an untaggable type is: its identity is recorded in the estate's record store when one is configured.",
|
|
74
|
+
"claimed": false
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"address": "aws_route_table_association.public_b",
|
|
78
|
+
"type": "aws_route_table_association",
|
|
79
|
+
"status": "UNTAGGABLE",
|
|
80
|
+
"liveId": "rtbassoc-0f60718293a4b5c6d",
|
|
81
|
+
"detail": "aws_route_table_association has no tags argument in the provider's schema, so there is nowhere on it to carry an ownership marker. It is migrated as an untaggable type is: its identity is recorded in the estate's record store when one is configured.",
|
|
82
|
+
"claimed": false
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"address": "aws_security_group.edge",
|
|
86
|
+
"type": "aws_security_group",
|
|
87
|
+
"status": "VERIFIED",
|
|
88
|
+
"liveId": "sg-0a0b0c0d0e0f10111",
|
|
89
|
+
"detail": "The live object matches the state's recorded attributes.",
|
|
90
|
+
"claimed": true
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"address": "aws_s3_bucket.artifacts",
|
|
94
|
+
"type": "aws_s3_bucket",
|
|
95
|
+
"status": "VERIFIED",
|
|
96
|
+
"liveId": "waterline-prod-artifacts",
|
|
97
|
+
"detail": "The live object matches the state's recorded attributes.",
|
|
98
|
+
"claimed": true
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"address": "aws_s3_bucket_versioning.artifacts",
|
|
102
|
+
"type": "aws_s3_bucket_versioning",
|
|
103
|
+
"status": "UNTAGGABLE",
|
|
104
|
+
"liveId": "waterline-prod-artifacts",
|
|
105
|
+
"detail": "aws_s3_bucket_versioning has no tags argument in the provider's schema, so there is nowhere on it to carry an ownership marker. It is migrated as an untaggable type is: its identity is recorded in the estate's record store when one is configured.",
|
|
106
|
+
"claimed": false
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"address": "aws_s3_bucket_public_access_block.artifacts",
|
|
110
|
+
"type": "aws_s3_bucket_public_access_block",
|
|
111
|
+
"status": "UNTAGGABLE",
|
|
112
|
+
"liveId": "waterline-prod-artifacts",
|
|
113
|
+
"detail": "aws_s3_bucket_public_access_block has no tags argument in the provider's schema, so there is nowhere on it to carry an ownership marker. It is migrated as an untaggable type is: its identity is recorded in the estate's record store when one is configured.",
|
|
114
|
+
"claimed": false
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"address": "aws_s3_bucket_server_side_encryption_configuration.artifacts",
|
|
118
|
+
"type": "aws_s3_bucket_server_side_encryption_configuration",
|
|
119
|
+
"status": "UNTAGGABLE",
|
|
120
|
+
"liveId": "waterline-prod-artifacts",
|
|
121
|
+
"detail": "aws_s3_bucket_server_side_encryption_configuration has no tags argument in the provider's schema, so there is nowhere on it to carry an ownership marker. It is migrated as an untaggable type is: its identity is recorded in the estate's record store when one is configured.",
|
|
122
|
+
"claimed": false
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"address": "module.checkout.aws_iam_role.this",
|
|
126
|
+
"type": "aws_iam_role",
|
|
127
|
+
"status": "VERIFIED",
|
|
128
|
+
"liveId": "waterline-prod-checkout",
|
|
129
|
+
"detail": "The live object matches the state's recorded attributes.",
|
|
130
|
+
"claimed": true
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"address": "module.checkout.aws_iam_role_policy.this",
|
|
134
|
+
"type": "aws_iam_role_policy",
|
|
135
|
+
"status": "UNTAGGABLE",
|
|
136
|
+
"liveId": "waterline-prod-checkout:waterline-prod-checkout",
|
|
137
|
+
"detail": "aws_iam_role_policy has no tags argument in the provider's schema, so there is nowhere on it to carry an ownership marker. It is migrated as an untaggable type is: its identity is recorded in the estate's record store when one is configured.",
|
|
138
|
+
"claimed": false
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"address": "module.checkout.aws_cloudwatch_log_group.this",
|
|
142
|
+
"type": "aws_cloudwatch_log_group",
|
|
143
|
+
"status": "VERIFIED",
|
|
144
|
+
"liveId": "/waterline-prod/checkout",
|
|
145
|
+
"detail": "The live object matches the state's recorded attributes.",
|
|
146
|
+
"claimed": true
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"address": "module.checkout.aws_sqs_queue.work",
|
|
150
|
+
"type": "aws_sqs_queue",
|
|
151
|
+
"status": "VERIFIED",
|
|
152
|
+
"liveId": "https://sqs.us-east-1.amazonaws.com/111122223333/waterline-prod-checkout-work",
|
|
153
|
+
"detail": "The live object matches the state's recorded attributes.",
|
|
154
|
+
"claimed": true
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"address": "module.checkout.aws_sqs_queue.dead",
|
|
158
|
+
"type": "aws_sqs_queue",
|
|
159
|
+
"status": "VERIFIED",
|
|
160
|
+
"liveId": "https://sqs.us-east-1.amazonaws.com/111122223333/waterline-prod-checkout-dead",
|
|
161
|
+
"detail": "The live object matches the state's recorded attributes.",
|
|
162
|
+
"claimed": true
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"address": "module.checkout.aws_security_group.task",
|
|
166
|
+
"type": "aws_security_group",
|
|
167
|
+
"status": "VERIFIED",
|
|
168
|
+
"liveId": "sg-0c4e19a7d2f3b6e10",
|
|
169
|
+
"detail": "The live object matches the state's recorded attributes.",
|
|
170
|
+
"claimed": true
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"address": "module.ledger.aws_iam_role.this",
|
|
174
|
+
"type": "aws_iam_role",
|
|
175
|
+
"status": "VERIFIED",
|
|
176
|
+
"liveId": "waterline-prod-ledger",
|
|
177
|
+
"detail": "The live object matches the state's recorded attributes.",
|
|
178
|
+
"claimed": true
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"address": "module.ledger.aws_iam_role_policy.this",
|
|
182
|
+
"type": "aws_iam_role_policy",
|
|
183
|
+
"status": "UNTAGGABLE",
|
|
184
|
+
"liveId": "waterline-prod-ledger:waterline-prod-ledger",
|
|
185
|
+
"detail": "aws_iam_role_policy has no tags argument in the provider's schema, so there is nowhere on it to carry an ownership marker. It is migrated as an untaggable type is: its identity is recorded in the estate's record store when one is configured.",
|
|
186
|
+
"claimed": false
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"address": "module.ledger.aws_cloudwatch_log_group.this",
|
|
190
|
+
"type": "aws_cloudwatch_log_group",
|
|
191
|
+
"status": "VERIFIED",
|
|
192
|
+
"liveId": "/waterline-prod/ledger",
|
|
193
|
+
"detail": "The live object matches the state's recorded attributes.",
|
|
194
|
+
"claimed": true
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"address": "module.ledger.aws_sqs_queue.work",
|
|
198
|
+
"type": "aws_sqs_queue",
|
|
199
|
+
"status": "VERIFIED",
|
|
200
|
+
"liveId": "https://sqs.us-east-1.amazonaws.com/111122223333/waterline-prod-ledger-work",
|
|
201
|
+
"detail": "The live object matches the state's recorded attributes.",
|
|
202
|
+
"claimed": true
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"address": "module.ledger.aws_sqs_queue.dead",
|
|
206
|
+
"type": "aws_sqs_queue",
|
|
207
|
+
"status": "MISSING",
|
|
208
|
+
"liveId": "https://sqs.us-east-1.amazonaws.com/111122223333/waterline-prod-ledger-dead",
|
|
209
|
+
"detail": "The live system reports that this identity no longer exists.",
|
|
210
|
+
"claimed": false
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"address": "module.ledger.aws_security_group.task",
|
|
214
|
+
"type": "aws_security_group",
|
|
215
|
+
"status": "VERIFIED",
|
|
216
|
+
"liveId": "sg-0f81b2c3d4e5f6a71",
|
|
217
|
+
"detail": "The live object matches the state's recorded attributes.",
|
|
218
|
+
"claimed": true
|
|
219
|
+
}
|
|
220
|
+
],
|
|
221
|
+
"claimed": 17,
|
|
222
|
+
"total": 25
|
|
223
|
+
}
|
|
224
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
One Terraform root that holds everything, taken to four choudoufu estates in
|
|
4
4
|
two reviewed steps. [choudoufu](https://github.com/INTENTIUS/choudoufu) is the
|
|
5
|
-
OpenTofu fork for AWS and Kubernetes whose ownership lives on each resource as
|
|
5
|
+
OpenTofu fork for AWS, GCP, Azure and Kubernetes whose ownership lives on each resource as
|
|
6
6
|
two tags, `tofu-estate` and `tofu-address`.
|
|
7
7
|
|
|
8
8
|
```sh
|