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: docs/src/content/docs/03-features/02-stacks/03-explicit.mdx
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -412,6 +412,8 @@ When `update_source_with_cas = true` is set:
412
412
413
413
Consumers do not set `update_source_with_cas` themselves. When the `cas` experiment is enabled and the source is remote, Terragrunt uses the CAS path automatically. The attribute only has effect inside catalog files, where it flags nested `source` attributes for rewriting.
414
414
415
+
`unit` and `stack` blocks also accept a `mutable` attribute. When `mutable = true`, the unit's or stack's content under `.terragrunt-stack` is copied from the CAS store instead of hardlinked. The default is `false`, which lets CAS hardlink files for speed and deduplication. Set this when you intend to edit files in `.terragrunt-stack` directly: hardlinked files share an inode with the shared store, so editing them in place would corrupt it.
416
+
415
417
Given the catalog files above, and an ordinary consumer stack like:
Copy file name to clipboardExpand all lines: docs/src/content/docs/04-reference/01-hcl/02-blocks.mdx
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,6 +69,13 @@ The `terraform` block supports the following arguments:
69
69
70
70
*Note that if you wish to exclude files from being copied from a terraform module source, you should use the [before_hook](/features/units/hooks) feature.*
71
71
72
+
-`mutable` (attribute): When `true`, content fetched into `.terragrunt-cache` is copied from the
73
+
[content-addressable storage (CAS)](/features/caching/cas) instead of hardlinked. The default is `false`,
74
+
which lets CAS hardlink files from its shared store for speed and deduplication. Set this to `true` when you
75
+
intend to edit files inside `.terragrunt-cache` directly: hardlinked files share an inode with the CAS store,
76
+
so editing them in place would corrupt the store. The flag has no effect when CAS is not used to fetch the
77
+
source; the standard download path already produces an independent copy.
78
+
72
79
-`copy_terraform_lock_file` (attribute): In certain use cases, you don't want to check the terraform provider lock
73
80
file into your source repository from your working directory as described in
74
81
[Lock File Handling](/reference/lock-files). This attribute allows you to disable the copy
0 commit comments