@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.
Files changed (270) hide show
  1. package/dist/__fixtures__/terragrunt/affected-cases.d.ts +23 -0
  2. package/dist/__fixtures__/terragrunt/affected-cases.d.ts.map +1 -0
  3. package/dist/__fixtures__/terragrunt/record.d.ts +17 -0
  4. package/dist/__fixtures__/terragrunt/record.d.ts.map +1 -0
  5. package/dist/change-set.d.ts +67 -0
  6. package/dist/change-set.d.ts.map +1 -0
  7. package/dist/changed-roots.d.ts +30 -0
  8. package/dist/changed-roots.d.ts.map +1 -0
  9. package/dist/commands.d.ts +26 -0
  10. package/dist/commands.d.ts.map +1 -0
  11. package/dist/components/capability-plugin.d.ts +54 -0
  12. package/dist/components/capability-plugin.d.ts.map +1 -0
  13. package/dist/composites/terraform-pin-rollout-op.d.ts +44 -0
  14. package/dist/composites/terraform-pin-rollout-op.d.ts.map +1 -0
  15. package/dist/hcl/descend.d.ts +1 -1
  16. package/dist/hcl/descend.d.ts.map +1 -1
  17. package/dist/hcl/edges.d.ts +2 -2
  18. package/dist/hcl/edges.d.ts.map +1 -1
  19. package/dist/hcl/parse.d.ts +29 -1
  20. package/dist/hcl/parse.d.ts.map +1 -1
  21. package/dist/hcl/roots.d.ts +1 -1
  22. package/dist/hcl/roots.d.ts.map +1 -1
  23. package/dist/hcl/suppressions.d.ts.map +1 -1
  24. package/dist/index.d.ts +4 -1
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/integrity.json +13 -4
  27. package/dist/lint/audit-catalog.d.ts.map +1 -1
  28. package/dist/lint/post-synth/index.d.ts.map +1 -1
  29. package/dist/lint/post-synth/module-source.d.ts +27 -1
  30. package/dist/lint/post-synth/module-source.d.ts.map +1 -1
  31. package/dist/lint/post-synth/terragrunt.d.ts +37 -0
  32. package/dist/lint/post-synth/terragrunt.d.ts.map +1 -0
  33. package/dist/lint/post-synth/tf002.d.ts +3 -1
  34. package/dist/lint/post-synth/tf002.d.ts.map +1 -1
  35. package/dist/lint/post-synth/tf038.d.ts +22 -0
  36. package/dist/lint/post-synth/tf038.d.ts.map +1 -0
  37. package/dist/lint/post-synth/tf039.d.ts +23 -0
  38. package/dist/lint/post-synth/tf039.d.ts.map +1 -0
  39. package/dist/lint/post-synth/tf040.d.ts +30 -0
  40. package/dist/lint/post-synth/tf040.d.ts.map +1 -0
  41. package/dist/lint/post-synth/tf041.d.ts +20 -0
  42. package/dist/lint/post-synth/tf041.d.ts.map +1 -0
  43. package/dist/lint/post-synth/tf042.d.ts +18 -0
  44. package/dist/lint/post-synth/tf042.d.ts.map +1 -0
  45. package/dist/lint/post-synth/tf043.d.ts +17 -0
  46. package/dist/lint/post-synth/tf043.d.ts.map +1 -0
  47. package/dist/lint/post-synth/tf044.d.ts +17 -0
  48. package/dist/lint/post-synth/tf044.d.ts.map +1 -0
  49. package/dist/lint/post-synth/tf045.d.ts +22 -0
  50. package/dist/lint/post-synth/tf045.d.ts.map +1 -0
  51. package/dist/manifest.json +1 -1
  52. package/dist/okf/index.md +8 -0
  53. package/dist/okf/rules/TF038.md +11 -0
  54. package/dist/okf/rules/TF039.md +11 -0
  55. package/dist/okf/rules/TF040.md +11 -0
  56. package/dist/okf/rules/TF041.md +11 -0
  57. package/dist/okf/rules/TF042.md +11 -0
  58. package/dist/okf/rules/TF043.md +11 -0
  59. package/dist/okf/rules/TF044.md +11 -0
  60. package/dist/okf/rules/TF045.md +11 -0
  61. package/dist/op/activities/index.d.ts +4 -0
  62. package/dist/op/activities/index.d.ts.map +1 -1
  63. package/dist/op/activities/pin-rollout.d.ts +46 -0
  64. package/dist/op/activities/pin-rollout.d.ts.map +1 -0
  65. package/dist/op/activities/terraform.d.ts +24 -50
  66. package/dist/op/activities/terraform.d.ts.map +1 -1
  67. package/dist/op/activity-contracts.d.ts +48 -0
  68. package/dist/op/activity-contracts.d.ts.map +1 -1
  69. package/dist/op/builders.d.ts +9 -0
  70. package/dist/op/builders.d.ts.map +1 -1
  71. package/dist/pin/edit-ts.d.ts +21 -0
  72. package/dist/pin/edit-ts.d.ts.map +1 -0
  73. package/dist/pin/edit.d.ts +52 -0
  74. package/dist/pin/edit.d.ts.map +1 -0
  75. package/dist/pin/forge.d.ts +39 -0
  76. package/dist/pin/forge.d.ts.map +1 -0
  77. package/dist/pin/index.d.ts +22 -0
  78. package/dist/pin/index.d.ts.map +1 -0
  79. package/dist/pin/rollout.d.ts +116 -0
  80. package/dist/pin/rollout.d.ts.map +1 -0
  81. package/dist/pin/scan.d.ts +54 -0
  82. package/dist/pin/scan.d.ts.map +1 -0
  83. package/dist/pin/source.d.ts +93 -0
  84. package/dist/pin/source.d.ts.map +1 -0
  85. package/dist/pin/waves.d.ts +66 -0
  86. package/dist/pin/waves.d.ts.map +1 -0
  87. package/dist/plan-digest.d.ts +59 -0
  88. package/dist/plan-digest.d.ts.map +1 -0
  89. package/dist/plugin.d.ts.map +1 -1
  90. package/dist/rules/module-source.ts +56 -1
  91. package/dist/rules/terragrunt.ts +76 -0
  92. package/dist/rules/tf002.ts +1 -1
  93. package/dist/rules/tf038.ts +71 -0
  94. package/dist/rules/tf039.ts +64 -0
  95. package/dist/rules/tf040.ts +76 -0
  96. package/dist/rules/tf041.ts +56 -0
  97. package/dist/rules/tf042.ts +42 -0
  98. package/dist/rules/tf043.ts +49 -0
  99. package/dist/rules/tf044.ts +51 -0
  100. package/dist/rules/tf045.ts +47 -0
  101. package/dist/terragrunt/affected.d.ts +119 -0
  102. package/dist/terragrunt/affected.d.ts.map +1 -0
  103. package/dist/terragrunt/index.d.ts +11 -0
  104. package/dist/terragrunt/index.d.ts.map +1 -0
  105. package/dist/terragrunt/mocks.d.ts +147 -0
  106. package/dist/terragrunt/mocks.d.ts.map +1 -0
  107. package/dist/terragrunt/run.d.ts +130 -0
  108. package/dist/terragrunt/run.d.ts.map +1 -0
  109. package/dist/terragrunt/units.d.ts +103 -0
  110. package/dist/terragrunt/units.d.ts.map +1 -0
  111. package/dist/terragrunt/wave.d.ts +89 -0
  112. package/dist/terragrunt/wave.d.ts.map +1 -0
  113. package/package.json +12 -2
  114. package/src/__fixtures__/change-set/choudoufu-set-plan.change-set.golden.json +95 -0
  115. package/src/__fixtures__/change-set/choudoufu-set-plan.json +76 -0
  116. package/src/__fixtures__/change-set/choudoufu.part.golden.json +173 -0
  117. package/src/__fixtures__/change-set/choudoufu.plan.json +610 -0
  118. package/src/__fixtures__/change-set/terraform.import-forget.plan.json +81 -0
  119. package/src/__fixtures__/change-set/terraform.part.golden.json +173 -0
  120. package/src/__fixtures__/change-set/terraform.plan.json +589 -0
  121. package/src/__fixtures__/change-set/tofu.part.golden.json +173 -0
  122. package/src/__fixtures__/change-set/tofu.plan.json +588 -0
  123. package/src/__fixtures__/change-set/v1.tf.txt +21 -0
  124. package/src/__fixtures__/change-set/v2-module-app.tf.txt +4 -0
  125. package/src/__fixtures__/change-set/v2.tf.txt +21 -0
  126. package/src/__fixtures__/pin/choudoufu-live-waves-n5.json +83 -0
  127. package/src/__fixtures__/pin/largeset-oci-n5/apply-order.txt +5 -0
  128. package/src/__fixtures__/pin/largeset-oci-n5/estates/e01/estate.chdf.hcl +6 -0
  129. package/src/__fixtures__/pin/largeset-oci-n5/estates/e01/main.tf +33 -0
  130. package/src/__fixtures__/pin/largeset-oci-n5/estates/e02/estate.chdf.hcl +6 -0
  131. package/src/__fixtures__/pin/largeset-oci-n5/estates/e02/main.tf +45 -0
  132. package/src/__fixtures__/pin/largeset-oci-n5/estates/e03/estate.chdf.hcl +6 -0
  133. package/src/__fixtures__/pin/largeset-oci-n5/estates/e03/main.tf +47 -0
  134. package/src/__fixtures__/pin/largeset-oci-n5/estates/e04/estate.chdf.hcl +6 -0
  135. package/src/__fixtures__/pin/largeset-oci-n5/estates/e04/main.tf +31 -0
  136. package/src/__fixtures__/pin/largeset-oci-n5/estates/e05/estate.chdf.hcl +6 -0
  137. package/src/__fixtures__/pin/largeset-oci-n5/estates/e05/main.tf +27 -0
  138. package/src/__fixtures__/pin/largeset-oci-n5/fixture.json +77 -0
  139. package/src/__fixtures__/plan-summary/largeset-n5-bump.json +2071 -0
  140. package/src/__fixtures__/plan-summary/largeset-n5.summary.golden.json +95 -0
  141. package/src/__fixtures__/plan-summary/largeset-n5.summary.golden.md +22 -0
  142. package/src/__fixtures__/plan-summary/largeset-n5.summary.golden.txt +12 -0
  143. package/src/__fixtures__/terragrunt/affected/catalog/units/web/terragrunt.hcl +3 -0
  144. package/src/__fixtures__/terragrunt/affected/gitignore +3 -0
  145. package/src/__fixtures__/terragrunt/affected/live/dev/app/terragrunt.hcl +3 -0
  146. package/src/__fixtures__/terragrunt/affected/live/dev/vpc/terragrunt.hcl +3 -0
  147. package/src/__fixtures__/terragrunt/affected/live/prod/app/terragrunt.hcl +3 -0
  148. package/src/__fixtures__/terragrunt/affected/live/stg/terragrunt.stack.hcl +5 -0
  149. package/src/__fixtures__/terragrunt/affected/modules/app/main.tf +6 -0
  150. package/src/__fixtures__/terragrunt/affected/modules/app/policy.json +1 -0
  151. package/src/__fixtures__/terragrunt/affected/modules/net/main.tf +2 -0
  152. package/src/__fixtures__/terragrunt/affected/modules/thing/main.tf +3 -0
  153. package/src/__fixtures__/terragrunt/affected/root.hcl +5 -0
  154. package/src/__fixtures__/terragrunt/affected-cases.ts +126 -0
  155. package/src/__fixtures__/terragrunt/five-units/catalog/units/thing/terragrunt.hcl +3 -0
  156. package/src/__fixtures__/terragrunt/five-units/live/dev/app/terragrunt.hcl +13 -0
  157. package/src/__fixtures__/terragrunt/five-units/live/dev/db/terragrunt.hcl +8 -0
  158. package/src/__fixtures__/terragrunt/five-units/live/dev/vpc/terragrunt.hcl +3 -0
  159. package/src/__fixtures__/terragrunt/five-units/live/prod/app/terragrunt.hcl +8 -0
  160. package/src/__fixtures__/terragrunt/five-units/live/prod/vpc/terragrunt.hcl +3 -0
  161. package/src/__fixtures__/terragrunt/five-units/modules/thing/main.tf +7 -0
  162. package/src/__fixtures__/terragrunt/five-units/root.hcl +5 -0
  163. package/src/__fixtures__/terragrunt/record.ts +56 -0
  164. package/src/__fixtures__/terragrunt/recorded/affected-find.json +50 -0
  165. package/src/__fixtures__/terragrunt/recorded/failed-plan-report.json +36 -0
  166. package/src/__fixtures__/terragrunt/recorded/find.json +67 -0
  167. package/src/__fixtures__/terragrunt/recorded/version.txt +1 -0
  168. package/src/__fixtures__/terragrunt/recorded/wave-1/apply-report.json +22 -0
  169. package/src/__fixtures__/terragrunt/recorded/wave-1/json/live/dev/vpc/tfplan.json +1 -0
  170. package/src/__fixtures__/terragrunt/recorded/wave-1/json/live/prod/vpc/tfplan.json +1 -0
  171. package/src/__fixtures__/terragrunt/recorded/wave-1/plan-report.json +22 -0
  172. package/src/__fixtures__/terragrunt/recorded/wave-2/json/live/dev/db/tfplan.json +1 -0
  173. package/src/__fixtures__/terragrunt/recorded/wave-2/json/live/prod/app/tfplan.json +1 -0
  174. package/src/__fixtures__/terragrunt/recorded/wave-2/plan-report.json +22 -0
  175. package/src/change-set-combined-run.test.ts +156 -0
  176. package/src/change-set.test.ts +151 -0
  177. package/src/change-set.ts +273 -0
  178. package/src/changed-roots.test.ts +58 -0
  179. package/src/changed-roots.ts +102 -0
  180. package/src/commands.ts +112 -0
  181. package/src/components/capability-plugin.test.ts +91 -0
  182. package/src/components/capability-plugin.ts +131 -0
  183. package/src/components/pr-loop.tofu.test.ts +244 -0
  184. package/src/composites/terraform-pin-rollout-op.test.ts +69 -0
  185. package/src/composites/terraform-pin-rollout-op.ts +60 -0
  186. package/src/hcl/descend.ts +1 -1
  187. package/src/hcl/edges.ts +2 -2
  188. package/src/hcl/parse.test.ts +25 -0
  189. package/src/hcl/parse.ts +91 -6
  190. package/src/hcl/roots.ts +1 -1
  191. package/src/hcl/suppressions.ts +8 -2
  192. package/src/index.ts +18 -0
  193. package/src/lint/audit-catalog.ts +82 -0
  194. package/src/lint/audit.test.ts +3 -1
  195. package/src/lint/post-synth/fixtures/TF038/positive.tf +3 -0
  196. package/src/lint/post-synth/fixtures/TF039/positive.tf +4 -0
  197. package/src/lint/post-synth/fixtures/TF041/negative/terragrunt.hcl +12 -0
  198. package/src/lint/post-synth/fixtures/TF041/positive/terragrunt.hcl +7 -0
  199. package/src/lint/post-synth/fixtures/TF041/positive-apply/terragrunt.hcl +8 -0
  200. package/src/lint/post-synth/fixtures/TF042/negative/terragrunt.hcl +13 -0
  201. package/src/lint/post-synth/fixtures/TF042/positive/terragrunt.hcl +9 -0
  202. package/src/lint/post-synth/fixtures/TF043/negative/terragrunt.hcl +3 -0
  203. package/src/lint/post-synth/fixtures/TF043/negative-other/terragrunt.hcl +3 -0
  204. package/src/lint/post-synth/fixtures/TF043/positive-git/terragrunt.hcl +3 -0
  205. package/src/lint/post-synth/fixtures/TF043/positive-oci/terragrunt.hcl +3 -0
  206. package/src/lint/post-synth/fixtures/TF043/positive-tfr/terragrunt.hcl +3 -0
  207. package/src/lint/post-synth/fixtures/TF044/negative/terragrunt.hcl +9 -0
  208. package/src/lint/post-synth/fixtures/TF044/positive/terragrunt.hcl +7 -0
  209. package/src/lint/post-synth/fixtures/TF044/positive-generate/terragrunt.hcl +9 -0
  210. package/src/lint/post-synth/fixtures/TF045/negative/root.hcl +1 -0
  211. package/src/lint/post-synth/fixtures/TF045/negative/terragrunt.hcl +3 -0
  212. package/src/lint/post-synth/fixtures/TF045/positive/root.hcl +9 -0
  213. package/src/lint/post-synth/fixtures/TF045/positive/terragrunt.hcl +3 -0
  214. package/src/lint/post-synth/fixtures/TF045/unit-only/terragrunt.hcl +3 -0
  215. package/src/lint/post-synth/index.ts +16 -0
  216. package/src/lint/post-synth/module-source.test.ts +42 -1
  217. package/src/lint/post-synth/module-source.ts +56 -1
  218. package/src/lint/post-synth/terragrunt.ts +76 -0
  219. package/src/lint/post-synth/tf002.ts +1 -1
  220. package/src/lint/post-synth/tf038.test.ts +51 -0
  221. package/src/lint/post-synth/tf038.ts +71 -0
  222. package/src/lint/post-synth/tf039.test.ts +40 -0
  223. package/src/lint/post-synth/tf039.ts +64 -0
  224. package/src/lint/post-synth/tf040.test.ts +55 -0
  225. package/src/lint/post-synth/tf040.ts +76 -0
  226. package/src/lint/post-synth/tf041.test.ts +50 -0
  227. package/src/lint/post-synth/tf041.ts +56 -0
  228. package/src/lint/post-synth/tf042.test.ts +19 -0
  229. package/src/lint/post-synth/tf042.ts +42 -0
  230. package/src/lint/post-synth/tf043.test.ts +65 -0
  231. package/src/lint/post-synth/tf043.ts +49 -0
  232. package/src/lint/post-synth/tf044.test.ts +27 -0
  233. package/src/lint/post-synth/tf044.ts +51 -0
  234. package/src/lint/post-synth/tf045.test.ts +30 -0
  235. package/src/lint/post-synth/tf045.ts +47 -0
  236. package/src/op/activities/index.ts +4 -0
  237. package/src/op/activities/pin-rollout.ts +77 -0
  238. package/src/op/activities/terraform.test.ts +13 -0
  239. package/src/op/activities/terraform.ts +46 -86
  240. package/src/op/activity-contracts.test.ts +4 -1
  241. package/src/op/activity-contracts.ts +42 -0
  242. package/src/op/builders.ts +13 -0
  243. package/src/pin/bundle.test.ts +53 -0
  244. package/src/pin/edit-ts.test.ts +39 -0
  245. package/src/pin/edit-ts.ts +77 -0
  246. package/src/pin/edit.test.ts +199 -0
  247. package/src/pin/edit.ts +157 -0
  248. package/src/pin/forge.ts +85 -0
  249. package/src/pin/index.ts +22 -0
  250. package/src/pin/rollout.test.ts +232 -0
  251. package/src/pin/rollout.ts +451 -0
  252. package/src/pin/scan.ts +309 -0
  253. package/src/pin/source.ts +206 -0
  254. package/src/pin/waves.test.ts +101 -0
  255. package/src/pin/waves.ts +125 -0
  256. package/src/plan-digest.ts +99 -0
  257. package/src/plan-summary.test.ts +154 -0
  258. package/src/plugin.ts +25 -2
  259. package/src/terragrunt/affected.acceptance.test.ts +83 -0
  260. package/src/terragrunt/affected.test.ts +177 -0
  261. package/src/terragrunt/affected.ts +348 -0
  262. package/src/terragrunt/index.ts +11 -0
  263. package/src/terragrunt/mocks.acceptance.test.ts +105 -0
  264. package/src/terragrunt/mocks.test.ts +309 -0
  265. package/src/terragrunt/mocks.ts +324 -0
  266. package/src/terragrunt/run.ts +369 -0
  267. package/src/terragrunt/terragrunt.acceptance.test.ts +122 -0
  268. package/src/terragrunt/terragrunt.test.ts +332 -0
  269. package/src/terragrunt/units.ts +235 -0
  270. 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,5 @@
1
+ estates/e01
2
+ estates/e02
3
+ estates/e03
4
+ estates/e04
5
+ estates/e05
@@ -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
+ }