@intentius/chant-lexicon-terraform 0.102.0 → 0.104.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/dist/__fixtures__/terragrunt/affected-cases.d.ts +23 -0
- package/dist/__fixtures__/terragrunt/affected-cases.d.ts.map +1 -0
- package/dist/__fixtures__/terragrunt/record.d.ts +17 -0
- package/dist/__fixtures__/terragrunt/record.d.ts.map +1 -0
- package/dist/change-set.d.ts +67 -0
- package/dist/change-set.d.ts.map +1 -0
- package/dist/changed-roots.d.ts +30 -0
- package/dist/changed-roots.d.ts.map +1 -0
- package/dist/commands.d.ts +26 -0
- package/dist/commands.d.ts.map +1 -0
- package/dist/components/capability-plugin.d.ts +54 -0
- package/dist/components/capability-plugin.d.ts.map +1 -0
- package/dist/composites/terraform-pin-rollout-op.d.ts +44 -0
- package/dist/composites/terraform-pin-rollout-op.d.ts.map +1 -0
- package/dist/hcl/descend.d.ts +1 -1
- package/dist/hcl/descend.d.ts.map +1 -1
- package/dist/hcl/edges.d.ts +2 -2
- package/dist/hcl/edges.d.ts.map +1 -1
- package/dist/hcl/parse.d.ts +29 -1
- package/dist/hcl/parse.d.ts.map +1 -1
- package/dist/hcl/roots.d.ts +1 -1
- package/dist/hcl/roots.d.ts.map +1 -1
- package/dist/hcl/suppressions.d.ts.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/integrity.json +13 -4
- package/dist/lint/audit-catalog.d.ts.map +1 -1
- package/dist/lint/post-synth/index.d.ts.map +1 -1
- package/dist/lint/post-synth/module-source.d.ts +27 -1
- package/dist/lint/post-synth/module-source.d.ts.map +1 -1
- package/dist/lint/post-synth/terragrunt.d.ts +37 -0
- package/dist/lint/post-synth/terragrunt.d.ts.map +1 -0
- package/dist/lint/post-synth/tf002.d.ts +3 -1
- package/dist/lint/post-synth/tf002.d.ts.map +1 -1
- package/dist/lint/post-synth/tf038.d.ts +22 -0
- package/dist/lint/post-synth/tf038.d.ts.map +1 -0
- package/dist/lint/post-synth/tf039.d.ts +23 -0
- package/dist/lint/post-synth/tf039.d.ts.map +1 -0
- package/dist/lint/post-synth/tf040.d.ts +30 -0
- package/dist/lint/post-synth/tf040.d.ts.map +1 -0
- package/dist/lint/post-synth/tf041.d.ts +20 -0
- package/dist/lint/post-synth/tf041.d.ts.map +1 -0
- package/dist/lint/post-synth/tf042.d.ts +18 -0
- package/dist/lint/post-synth/tf042.d.ts.map +1 -0
- package/dist/lint/post-synth/tf043.d.ts +17 -0
- package/dist/lint/post-synth/tf043.d.ts.map +1 -0
- package/dist/lint/post-synth/tf044.d.ts +17 -0
- package/dist/lint/post-synth/tf044.d.ts.map +1 -0
- package/dist/lint/post-synth/tf045.d.ts +22 -0
- package/dist/lint/post-synth/tf045.d.ts.map +1 -0
- package/dist/manifest.json +1 -1
- package/dist/okf/index.md +8 -0
- package/dist/okf/rules/TF038.md +11 -0
- package/dist/okf/rules/TF039.md +11 -0
- package/dist/okf/rules/TF040.md +11 -0
- package/dist/okf/rules/TF041.md +11 -0
- package/dist/okf/rules/TF042.md +11 -0
- package/dist/okf/rules/TF043.md +11 -0
- package/dist/okf/rules/TF044.md +11 -0
- package/dist/okf/rules/TF045.md +11 -0
- package/dist/op/activities/index.d.ts +4 -0
- package/dist/op/activities/index.d.ts.map +1 -1
- package/dist/op/activities/pin-rollout.d.ts +46 -0
- package/dist/op/activities/pin-rollout.d.ts.map +1 -0
- package/dist/op/activities/terraform.d.ts +24 -50
- package/dist/op/activities/terraform.d.ts.map +1 -1
- package/dist/op/activity-contracts.d.ts +48 -0
- package/dist/op/activity-contracts.d.ts.map +1 -1
- package/dist/op/builders.d.ts +9 -0
- package/dist/op/builders.d.ts.map +1 -1
- package/dist/pin/edit-ts.d.ts +21 -0
- package/dist/pin/edit-ts.d.ts.map +1 -0
- package/dist/pin/edit.d.ts +52 -0
- package/dist/pin/edit.d.ts.map +1 -0
- package/dist/pin/forge.d.ts +39 -0
- package/dist/pin/forge.d.ts.map +1 -0
- package/dist/pin/index.d.ts +22 -0
- package/dist/pin/index.d.ts.map +1 -0
- package/dist/pin/rollout.d.ts +116 -0
- package/dist/pin/rollout.d.ts.map +1 -0
- package/dist/pin/scan.d.ts +54 -0
- package/dist/pin/scan.d.ts.map +1 -0
- package/dist/pin/source.d.ts +93 -0
- package/dist/pin/source.d.ts.map +1 -0
- package/dist/pin/waves.d.ts +66 -0
- package/dist/pin/waves.d.ts.map +1 -0
- package/dist/plan-digest.d.ts +59 -0
- package/dist/plan-digest.d.ts.map +1 -0
- package/dist/plugin.d.ts.map +1 -1
- package/dist/rules/module-source.ts +56 -1
- package/dist/rules/terragrunt.ts +76 -0
- package/dist/rules/tf002.ts +1 -1
- package/dist/rules/tf038.ts +71 -0
- package/dist/rules/tf039.ts +64 -0
- package/dist/rules/tf040.ts +76 -0
- package/dist/rules/tf041.ts +56 -0
- package/dist/rules/tf042.ts +42 -0
- package/dist/rules/tf043.ts +49 -0
- package/dist/rules/tf044.ts +51 -0
- package/dist/rules/tf045.ts +47 -0
- package/dist/terragrunt/affected.d.ts +119 -0
- package/dist/terragrunt/affected.d.ts.map +1 -0
- package/dist/terragrunt/index.d.ts +11 -0
- package/dist/terragrunt/index.d.ts.map +1 -0
- package/dist/terragrunt/mocks.d.ts +147 -0
- package/dist/terragrunt/mocks.d.ts.map +1 -0
- package/dist/terragrunt/run.d.ts +130 -0
- package/dist/terragrunt/run.d.ts.map +1 -0
- package/dist/terragrunt/units.d.ts +103 -0
- package/dist/terragrunt/units.d.ts.map +1 -0
- package/dist/terragrunt/wave.d.ts +89 -0
- package/dist/terragrunt/wave.d.ts.map +1 -0
- package/package.json +12 -2
- package/src/__fixtures__/change-set/choudoufu-set-plan.change-set.golden.json +95 -0
- package/src/__fixtures__/change-set/choudoufu-set-plan.json +76 -0
- package/src/__fixtures__/change-set/choudoufu.part.golden.json +173 -0
- package/src/__fixtures__/change-set/choudoufu.plan.json +610 -0
- package/src/__fixtures__/change-set/terraform.import-forget.plan.json +81 -0
- package/src/__fixtures__/change-set/terraform.part.golden.json +173 -0
- package/src/__fixtures__/change-set/terraform.plan.json +589 -0
- package/src/__fixtures__/change-set/tofu.part.golden.json +173 -0
- package/src/__fixtures__/change-set/tofu.plan.json +588 -0
- package/src/__fixtures__/change-set/v1.tf.txt +21 -0
- package/src/__fixtures__/change-set/v2-module-app.tf.txt +4 -0
- package/src/__fixtures__/change-set/v2.tf.txt +21 -0
- package/src/__fixtures__/pin/choudoufu-live-waves-n5.json +83 -0
- package/src/__fixtures__/pin/largeset-oci-n5/apply-order.txt +5 -0
- package/src/__fixtures__/pin/largeset-oci-n5/estates/e01/estate.chdf.hcl +6 -0
- package/src/__fixtures__/pin/largeset-oci-n5/estates/e01/main.tf +33 -0
- package/src/__fixtures__/pin/largeset-oci-n5/estates/e02/estate.chdf.hcl +6 -0
- package/src/__fixtures__/pin/largeset-oci-n5/estates/e02/main.tf +45 -0
- package/src/__fixtures__/pin/largeset-oci-n5/estates/e03/estate.chdf.hcl +6 -0
- package/src/__fixtures__/pin/largeset-oci-n5/estates/e03/main.tf +47 -0
- package/src/__fixtures__/pin/largeset-oci-n5/estates/e04/estate.chdf.hcl +6 -0
- package/src/__fixtures__/pin/largeset-oci-n5/estates/e04/main.tf +31 -0
- package/src/__fixtures__/pin/largeset-oci-n5/estates/e05/estate.chdf.hcl +6 -0
- package/src/__fixtures__/pin/largeset-oci-n5/estates/e05/main.tf +27 -0
- package/src/__fixtures__/pin/largeset-oci-n5/fixture.json +77 -0
- package/src/__fixtures__/plan-summary/largeset-n5-bump.json +2071 -0
- package/src/__fixtures__/plan-summary/largeset-n5.summary.golden.json +95 -0
- package/src/__fixtures__/plan-summary/largeset-n5.summary.golden.md +22 -0
- package/src/__fixtures__/plan-summary/largeset-n5.summary.golden.txt +12 -0
- package/src/__fixtures__/terragrunt/affected/catalog/units/web/terragrunt.hcl +3 -0
- package/src/__fixtures__/terragrunt/affected/gitignore +3 -0
- package/src/__fixtures__/terragrunt/affected/live/dev/app/terragrunt.hcl +3 -0
- package/src/__fixtures__/terragrunt/affected/live/dev/vpc/terragrunt.hcl +3 -0
- package/src/__fixtures__/terragrunt/affected/live/prod/app/terragrunt.hcl +3 -0
- package/src/__fixtures__/terragrunt/affected/live/stg/terragrunt.stack.hcl +5 -0
- package/src/__fixtures__/terragrunt/affected/modules/app/main.tf +6 -0
- package/src/__fixtures__/terragrunt/affected/modules/app/policy.json +1 -0
- package/src/__fixtures__/terragrunt/affected/modules/net/main.tf +2 -0
- package/src/__fixtures__/terragrunt/affected/modules/thing/main.tf +3 -0
- package/src/__fixtures__/terragrunt/affected/root.hcl +5 -0
- package/src/__fixtures__/terragrunt/affected-cases.ts +126 -0
- package/src/__fixtures__/terragrunt/five-units/catalog/units/thing/terragrunt.hcl +3 -0
- package/src/__fixtures__/terragrunt/five-units/live/dev/app/terragrunt.hcl +13 -0
- package/src/__fixtures__/terragrunt/five-units/live/dev/db/terragrunt.hcl +8 -0
- package/src/__fixtures__/terragrunt/five-units/live/dev/vpc/terragrunt.hcl +3 -0
- package/src/__fixtures__/terragrunt/five-units/live/prod/app/terragrunt.hcl +8 -0
- package/src/__fixtures__/terragrunt/five-units/live/prod/vpc/terragrunt.hcl +3 -0
- package/src/__fixtures__/terragrunt/five-units/modules/thing/main.tf +7 -0
- package/src/__fixtures__/terragrunt/five-units/root.hcl +5 -0
- package/src/__fixtures__/terragrunt/record.ts +56 -0
- package/src/__fixtures__/terragrunt/recorded/affected-find.json +50 -0
- package/src/__fixtures__/terragrunt/recorded/failed-plan-report.json +36 -0
- package/src/__fixtures__/terragrunt/recorded/find.json +67 -0
- package/src/__fixtures__/terragrunt/recorded/version.txt +1 -0
- package/src/__fixtures__/terragrunt/recorded/wave-1/apply-report.json +22 -0
- package/src/__fixtures__/terragrunt/recorded/wave-1/json/live/dev/vpc/tfplan.json +1 -0
- package/src/__fixtures__/terragrunt/recorded/wave-1/json/live/prod/vpc/tfplan.json +1 -0
- package/src/__fixtures__/terragrunt/recorded/wave-1/plan-report.json +22 -0
- package/src/__fixtures__/terragrunt/recorded/wave-2/json/live/dev/db/tfplan.json +1 -0
- package/src/__fixtures__/terragrunt/recorded/wave-2/json/live/prod/app/tfplan.json +1 -0
- package/src/__fixtures__/terragrunt/recorded/wave-2/plan-report.json +22 -0
- package/src/change-set-combined-run.test.ts +156 -0
- package/src/change-set.test.ts +151 -0
- package/src/change-set.ts +273 -0
- package/src/changed-roots.test.ts +58 -0
- package/src/changed-roots.ts +102 -0
- package/src/commands.ts +112 -0
- package/src/components/capability-plugin.test.ts +91 -0
- package/src/components/capability-plugin.ts +131 -0
- package/src/components/pr-loop.tofu.test.ts +244 -0
- package/src/composites/terraform-pin-rollout-op.test.ts +69 -0
- package/src/composites/terraform-pin-rollout-op.ts +60 -0
- package/src/hcl/descend.ts +1 -1
- package/src/hcl/edges.ts +2 -2
- package/src/hcl/parse.test.ts +25 -0
- package/src/hcl/parse.ts +91 -6
- package/src/hcl/roots.ts +1 -1
- package/src/hcl/suppressions.ts +8 -2
- package/src/index.ts +18 -0
- package/src/lint/audit-catalog.ts +82 -0
- package/src/lint/audit.test.ts +3 -1
- package/src/lint/post-synth/fixtures/TF038/positive.tf +3 -0
- package/src/lint/post-synth/fixtures/TF039/positive.tf +4 -0
- package/src/lint/post-synth/fixtures/TF041/negative/terragrunt.hcl +12 -0
- package/src/lint/post-synth/fixtures/TF041/positive/terragrunt.hcl +7 -0
- package/src/lint/post-synth/fixtures/TF041/positive-apply/terragrunt.hcl +8 -0
- package/src/lint/post-synth/fixtures/TF042/negative/terragrunt.hcl +13 -0
- package/src/lint/post-synth/fixtures/TF042/positive/terragrunt.hcl +9 -0
- package/src/lint/post-synth/fixtures/TF043/negative/terragrunt.hcl +3 -0
- package/src/lint/post-synth/fixtures/TF043/negative-other/terragrunt.hcl +3 -0
- package/src/lint/post-synth/fixtures/TF043/positive-git/terragrunt.hcl +3 -0
- package/src/lint/post-synth/fixtures/TF043/positive-oci/terragrunt.hcl +3 -0
- package/src/lint/post-synth/fixtures/TF043/positive-tfr/terragrunt.hcl +3 -0
- package/src/lint/post-synth/fixtures/TF044/negative/terragrunt.hcl +9 -0
- package/src/lint/post-synth/fixtures/TF044/positive/terragrunt.hcl +7 -0
- package/src/lint/post-synth/fixtures/TF044/positive-generate/terragrunt.hcl +9 -0
- package/src/lint/post-synth/fixtures/TF045/negative/root.hcl +1 -0
- package/src/lint/post-synth/fixtures/TF045/negative/terragrunt.hcl +3 -0
- package/src/lint/post-synth/fixtures/TF045/positive/root.hcl +9 -0
- package/src/lint/post-synth/fixtures/TF045/positive/terragrunt.hcl +3 -0
- package/src/lint/post-synth/fixtures/TF045/unit-only/terragrunt.hcl +3 -0
- package/src/lint/post-synth/index.ts +16 -0
- package/src/lint/post-synth/module-source.test.ts +42 -1
- package/src/lint/post-synth/module-source.ts +56 -1
- package/src/lint/post-synth/terragrunt.ts +76 -0
- package/src/lint/post-synth/tf002.ts +1 -1
- package/src/lint/post-synth/tf038.test.ts +51 -0
- package/src/lint/post-synth/tf038.ts +71 -0
- package/src/lint/post-synth/tf039.test.ts +40 -0
- package/src/lint/post-synth/tf039.ts +64 -0
- package/src/lint/post-synth/tf040.test.ts +55 -0
- package/src/lint/post-synth/tf040.ts +76 -0
- package/src/lint/post-synth/tf041.test.ts +50 -0
- package/src/lint/post-synth/tf041.ts +56 -0
- package/src/lint/post-synth/tf042.test.ts +19 -0
- package/src/lint/post-synth/tf042.ts +42 -0
- package/src/lint/post-synth/tf043.test.ts +65 -0
- package/src/lint/post-synth/tf043.ts +49 -0
- package/src/lint/post-synth/tf044.test.ts +27 -0
- package/src/lint/post-synth/tf044.ts +51 -0
- package/src/lint/post-synth/tf045.test.ts +30 -0
- package/src/lint/post-synth/tf045.ts +47 -0
- package/src/op/activities/index.ts +4 -0
- package/src/op/activities/pin-rollout.ts +77 -0
- package/src/op/activities/terraform.test.ts +13 -0
- package/src/op/activities/terraform.ts +46 -86
- package/src/op/activity-contracts.test.ts +4 -1
- package/src/op/activity-contracts.ts +42 -0
- package/src/op/builders.ts +13 -0
- package/src/pin/bundle.test.ts +53 -0
- package/src/pin/edit-ts.test.ts +39 -0
- package/src/pin/edit-ts.ts +77 -0
- package/src/pin/edit.test.ts +199 -0
- package/src/pin/edit.ts +157 -0
- package/src/pin/forge.ts +85 -0
- package/src/pin/index.ts +22 -0
- package/src/pin/rollout.test.ts +232 -0
- package/src/pin/rollout.ts +451 -0
- package/src/pin/scan.ts +309 -0
- package/src/pin/source.ts +206 -0
- package/src/pin/waves.test.ts +101 -0
- package/src/pin/waves.ts +125 -0
- package/src/plan-digest.ts +99 -0
- package/src/plan-summary.test.ts +154 -0
- package/src/plugin.ts +25 -2
- package/src/terragrunt/affected.acceptance.test.ts +83 -0
- package/src/terragrunt/affected.test.ts +177 -0
- package/src/terragrunt/affected.ts +348 -0
- package/src/terragrunt/index.ts +11 -0
- package/src/terragrunt/mocks.acceptance.test.ts +105 -0
- package/src/terragrunt/mocks.test.ts +309 -0
- package/src/terragrunt/mocks.ts +324 -0
- package/src/terragrunt/run.ts +369 -0
- package/src/terragrunt/terragrunt.acceptance.test.ts +122 -0
- package/src/terragrunt/terragrunt.test.ts +332 -0
- package/src/terragrunt/units.ts +235 -0
- package/src/terragrunt/wave.ts +181 -0
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format_version": "1",
|
|
3
|
+
"roots": [
|
|
4
|
+
{
|
|
5
|
+
"root": "estates/e01",
|
|
6
|
+
"estate": "ls-e01"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"root": "estates/e02",
|
|
10
|
+
"estate": "ls-e02",
|
|
11
|
+
"reads": [
|
|
12
|
+
{
|
|
13
|
+
"estate": "ls-e01",
|
|
14
|
+
"from": "data.aws_vpc.upstream"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"root": "estates/e03",
|
|
20
|
+
"estate": "ls-e03",
|
|
21
|
+
"reads": [
|
|
22
|
+
{
|
|
23
|
+
"estate": "ls-e02",
|
|
24
|
+
"from": "data.aws_subnet.upstream"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"root": "estates/e04",
|
|
30
|
+
"estate": "ls-e04"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"root": "estates/e05",
|
|
34
|
+
"estate": "ls-e05"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"waves": [
|
|
38
|
+
{
|
|
39
|
+
"wave": 1,
|
|
40
|
+
"canary": true,
|
|
41
|
+
"roots": [
|
|
42
|
+
"estates/e04"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"wave": 2,
|
|
47
|
+
"canary": false,
|
|
48
|
+
"roots": [
|
|
49
|
+
"estates/e01",
|
|
50
|
+
"estates/e05"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"wave": 3,
|
|
55
|
+
"canary": false,
|
|
56
|
+
"roots": [
|
|
57
|
+
"estates/e02"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"wave": 4,
|
|
62
|
+
"canary": false,
|
|
63
|
+
"roots": [
|
|
64
|
+
"estates/e03"
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"edges": [
|
|
69
|
+
{
|
|
70
|
+
"reader": "estates/e02",
|
|
71
|
+
"producer": "estates/e01",
|
|
72
|
+
"estate": "ls-e01",
|
|
73
|
+
"from": "data.aws_vpc.upstream"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"reader": "estates/e03",
|
|
77
|
+
"producer": "estates/e02",
|
|
78
|
+
"estate": "ls-e02",
|
|
79
|
+
"from": "data.aws_subnet.upstream"
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
"external_reads": []
|
|
83
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# Generated by tools/largeset-gen (issue #1750). Do not edit; regenerate.
|
|
2
|
+
#
|
|
3
|
+
# The estate declaration for root e01 (role: producer). One estate per root: two
|
|
4
|
+
# roots sharing a tofu-estate value would each see the other's resources as
|
|
5
|
+
# undeclared and propose destroying them.
|
|
6
|
+
estate = "ls-e01"
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Generated by tools/largeset-gen (issue #1750). Do not edit; regenerate.
|
|
2
|
+
#
|
|
3
|
+
# Root e01, role producer.
|
|
4
|
+
|
|
5
|
+
terraform {
|
|
6
|
+
required_providers {
|
|
7
|
+
aws = {
|
|
8
|
+
source = "hashicorp/aws"
|
|
9
|
+
version = "= 6.59.0"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
provider "aws" {
|
|
15
|
+
region = "us-east-1"
|
|
16
|
+
skip_credentials_validation = true
|
|
17
|
+
skip_metadata_api_check = true
|
|
18
|
+
skip_requesting_account_id = true
|
|
19
|
+
s3_use_path_style = true
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
module "shared" {
|
|
23
|
+
source = "oci://localhost:4890/largeset/shared?tag=1.0.0"
|
|
24
|
+
|
|
25
|
+
name = "e01"
|
|
26
|
+
prefix = "ls"
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
# The head of this block's cross-estate chain: the next estate reads this VPC
|
|
30
|
+
# through its markers.
|
|
31
|
+
resource "aws_vpc" "network" {
|
|
32
|
+
cidr_block = "10.100.0.0/16"
|
|
33
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# Generated by tools/largeset-gen (issue #1750). Do not edit; regenerate.
|
|
2
|
+
#
|
|
3
|
+
# The estate declaration for root e02 (role: middle). One estate per root: two
|
|
4
|
+
# roots sharing a tofu-estate value would each see the other's resources as
|
|
5
|
+
# undeclared and propose destroying them.
|
|
6
|
+
estate = "ls-e02"
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Generated by tools/largeset-gen (issue #1750). Do not edit; regenerate.
|
|
2
|
+
#
|
|
3
|
+
# Root e02, role middle.
|
|
4
|
+
|
|
5
|
+
terraform {
|
|
6
|
+
required_providers {
|
|
7
|
+
aws = {
|
|
8
|
+
source = "hashicorp/aws"
|
|
9
|
+
version = "= 6.59.0"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
provider "aws" {
|
|
15
|
+
region = "us-east-1"
|
|
16
|
+
skip_credentials_validation = true
|
|
17
|
+
skip_metadata_api_check = true
|
|
18
|
+
skip_requesting_account_id = true
|
|
19
|
+
s3_use_path_style = true
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
module "shared" {
|
|
23
|
+
source = "oci://localhost:4890/largeset/shared?tag=1.0.0"
|
|
24
|
+
|
|
25
|
+
name = "e02"
|
|
26
|
+
prefix = "ls"
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
# Reads ls-e01's VPC through its ownership markers (live/OUTPUTS.md), the first
|
|
30
|
+
# link of this block's chain.
|
|
31
|
+
data "aws_vpc" "upstream" {
|
|
32
|
+
filter {
|
|
33
|
+
name = "tag:tofu-estate"
|
|
34
|
+
values = ["ls-e01"]
|
|
35
|
+
}
|
|
36
|
+
filter {
|
|
37
|
+
name = "tag:tofu-address"
|
|
38
|
+
values = ["aws_vpc.network"]
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
resource "aws_subnet" "app" {
|
|
43
|
+
vpc_id = data.aws_vpc.upstream.id
|
|
44
|
+
cidr_block = "10.100.1.0/24"
|
|
45
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# Generated by tools/largeset-gen (issue #1750). Do not edit; regenerate.
|
|
2
|
+
#
|
|
3
|
+
# The estate declaration for root e03 (role: leaf). One estate per root: two
|
|
4
|
+
# roots sharing a tofu-estate value would each see the other's resources as
|
|
5
|
+
# undeclared and propose destroying them.
|
|
6
|
+
estate = "ls-e03"
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Generated by tools/largeset-gen (issue #1750). Do not edit; regenerate.
|
|
2
|
+
#
|
|
3
|
+
# Root e03, role leaf.
|
|
4
|
+
|
|
5
|
+
terraform {
|
|
6
|
+
required_providers {
|
|
7
|
+
aws = {
|
|
8
|
+
source = "hashicorp/aws"
|
|
9
|
+
version = "= 6.59.0"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
provider "aws" {
|
|
15
|
+
region = "us-east-1"
|
|
16
|
+
skip_credentials_validation = true
|
|
17
|
+
skip_metadata_api_check = true
|
|
18
|
+
skip_requesting_account_id = true
|
|
19
|
+
s3_use_path_style = true
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
module "shared" {
|
|
23
|
+
source = "oci://localhost:4890/largeset/shared?tag=1.0.0"
|
|
24
|
+
|
|
25
|
+
name = "e03"
|
|
26
|
+
prefix = "ls"
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
# Reads ls-e02's subnet through its ownership markers: the second link, so this
|
|
30
|
+
# estate sits at depth 2 of the chain.
|
|
31
|
+
data "aws_subnet" "upstream" {
|
|
32
|
+
filter {
|
|
33
|
+
name = "tag:tofu-estate"
|
|
34
|
+
values = ["ls-e02"]
|
|
35
|
+
}
|
|
36
|
+
filter {
|
|
37
|
+
name = "tag:tofu-address"
|
|
38
|
+
values = ["aws_subnet.app"]
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
resource "aws_sqs_queue" "downstream" {
|
|
43
|
+
name = "ls-e03-downstream"
|
|
44
|
+
tags = {
|
|
45
|
+
"upstream-subnet" = data.aws_subnet.upstream.id
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# Generated by tools/largeset-gen (issue #1750). Do not edit; regenerate.
|
|
2
|
+
#
|
|
3
|
+
# The estate declaration for root e04 (role: outlier). One estate per root: two
|
|
4
|
+
# roots sharing a tofu-estate value would each see the other's resources as
|
|
5
|
+
# undeclared and propose destroying them.
|
|
6
|
+
estate = "ls-e04"
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Generated by tools/largeset-gen (issue #1750). Do not edit; regenerate.
|
|
2
|
+
#
|
|
3
|
+
# Root e04, role outlier.
|
|
4
|
+
|
|
5
|
+
terraform {
|
|
6
|
+
required_providers {
|
|
7
|
+
aws = {
|
|
8
|
+
source = "hashicorp/aws"
|
|
9
|
+
version = "= 6.59.0"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
provider "aws" {
|
|
15
|
+
region = "us-east-1"
|
|
16
|
+
skip_credentials_validation = true
|
|
17
|
+
skip_metadata_api_check = true
|
|
18
|
+
skip_requesting_account_id = true
|
|
19
|
+
s3_use_path_style = true
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
module "shared" {
|
|
23
|
+
source = "oci://localhost:4890/largeset/shared?tag=1.0.0"
|
|
24
|
+
|
|
25
|
+
name = "e04"
|
|
26
|
+
prefix = "ls"
|
|
27
|
+
|
|
28
|
+
# The outlier: one more resource than every other estate, so its plan
|
|
29
|
+
# for the bump differs from the group's.
|
|
30
|
+
with_queue = true
|
|
31
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# Generated by tools/largeset-gen (issue #1750). Do not edit; regenerate.
|
|
2
|
+
#
|
|
3
|
+
# The estate declaration for root e05 (role: plain). One estate per root: two
|
|
4
|
+
# roots sharing a tofu-estate value would each see the other's resources as
|
|
5
|
+
# undeclared and propose destroying them.
|
|
6
|
+
estate = "ls-e05"
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Generated by tools/largeset-gen (issue #1750). Do not edit; regenerate.
|
|
2
|
+
#
|
|
3
|
+
# Root e05, role plain.
|
|
4
|
+
|
|
5
|
+
terraform {
|
|
6
|
+
required_providers {
|
|
7
|
+
aws = {
|
|
8
|
+
source = "hashicorp/aws"
|
|
9
|
+
version = "= 6.59.0"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
provider "aws" {
|
|
15
|
+
region = "us-east-1"
|
|
16
|
+
skip_credentials_validation = true
|
|
17
|
+
skip_metadata_api_check = true
|
|
18
|
+
skip_requesting_account_id = true
|
|
19
|
+
s3_use_path_style = true
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
module "shared" {
|
|
23
|
+
source = "oci://localhost:4890/largeset/shared?tag=1.0.0"
|
|
24
|
+
|
|
25
|
+
name = "e05"
|
|
26
|
+
prefix = "ls"
|
|
27
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": 1,
|
|
3
|
+
"issue": "#1750",
|
|
4
|
+
"source": "oci",
|
|
5
|
+
"prefix": "ls",
|
|
6
|
+
"module_version": "A",
|
|
7
|
+
"registry": "localhost:4890",
|
|
8
|
+
"estates": [
|
|
9
|
+
{
|
|
10
|
+
"name": "e01",
|
|
11
|
+
"dir": "estates/e01",
|
|
12
|
+
"estate": "ls-e01",
|
|
13
|
+
"role": "producer",
|
|
14
|
+
"module_version": "A",
|
|
15
|
+
"module_source": "oci://localhost:4890/largeset/shared?tag=1.0.0"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "e02",
|
|
19
|
+
"dir": "estates/e02",
|
|
20
|
+
"estate": "ls-e02",
|
|
21
|
+
"role": "middle",
|
|
22
|
+
"reads": [
|
|
23
|
+
"e01"
|
|
24
|
+
],
|
|
25
|
+
"module_version": "A",
|
|
26
|
+
"module_source": "oci://localhost:4890/largeset/shared?tag=1.0.0"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "e03",
|
|
30
|
+
"dir": "estates/e03",
|
|
31
|
+
"estate": "ls-e03",
|
|
32
|
+
"role": "leaf",
|
|
33
|
+
"reads": [
|
|
34
|
+
"e02"
|
|
35
|
+
],
|
|
36
|
+
"module_version": "A",
|
|
37
|
+
"module_source": "oci://localhost:4890/largeset/shared?tag=1.0.0"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "e04",
|
|
41
|
+
"dir": "estates/e04",
|
|
42
|
+
"estate": "ls-e04",
|
|
43
|
+
"role": "outlier",
|
|
44
|
+
"module_version": "A",
|
|
45
|
+
"module_source": "oci://localhost:4890/largeset/shared?tag=1.0.0"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "e05",
|
|
49
|
+
"dir": "estates/e05",
|
|
50
|
+
"estate": "ls-e05",
|
|
51
|
+
"role": "plain",
|
|
52
|
+
"module_version": "A",
|
|
53
|
+
"module_source": "oci://localhost:4890/largeset/shared?tag=1.0.0"
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"apply_order": [
|
|
57
|
+
"estates/e01",
|
|
58
|
+
"estates/e02",
|
|
59
|
+
"estates/e03",
|
|
60
|
+
"estates/e04",
|
|
61
|
+
"estates/e05"
|
|
62
|
+
],
|
|
63
|
+
"files": [
|
|
64
|
+
"apply-order.txt",
|
|
65
|
+
"estates/e01/estate.chdf.hcl",
|
|
66
|
+
"estates/e01/main.tf",
|
|
67
|
+
"estates/e02/estate.chdf.hcl",
|
|
68
|
+
"estates/e02/main.tf",
|
|
69
|
+
"estates/e03/estate.chdf.hcl",
|
|
70
|
+
"estates/e03/main.tf",
|
|
71
|
+
"estates/e04/estate.chdf.hcl",
|
|
72
|
+
"estates/e04/main.tf",
|
|
73
|
+
"estates/e05/estate.chdf.hcl",
|
|
74
|
+
"estates/e05/main.tf",
|
|
75
|
+
"fixture.json"
|
|
76
|
+
]
|
|
77
|
+
}
|