|
8 | 8 |
|
9 | 9 | import FileTree from '@components/vendored/starlight/FileTree.astro'; |
10 | 10 | import { Aside } from '@astrojs/starlight/components'; |
| 11 | +import Since from '@components/Since.astro'; |
| 12 | +import Before from '@components/Before.astro'; |
11 | 13 |
|
12 | 14 | Terragrunt HCL configuration uses [configuration blocks](https://github.com/hashicorp/hcl/blob/main/hclsyntax/spec.md#blocks) when there's a structural configuration that needs to be defined for Terragrunt. |
13 | 15 |
|
@@ -69,13 +71,6 @@ The `terraform` block supports the following arguments: |
69 | 71 |
|
70 | 72 | *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 | 73 |
|
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 | | - |
79 | 74 | - `copy_terraform_lock_file` (attribute): In certain use cases, you don't want to check the terraform provider lock |
80 | 75 | file into your source repository from your working directory as described in |
81 | 76 | [Lock File Handling](/reference/lock-files). This attribute allows you to disable the copy |
@@ -118,6 +113,26 @@ The `terraform` block supports the following arguments: |
118 | 113 | error must match one of the expressions listed in the `on_errors` attribute. Error hooks are executed after the before/after hooks. |
119 | 114 | To handle errors during source download (when using the `source` attribute), use `init-from-module` in the `commands` list. |
120 | 115 |
|
| 116 | +<Before version="1.0.4"> |
| 117 | + |
| 118 | +<Aside type="tip"> |
| 119 | +A `mutable` attribute that opts a `terraform` block out of CAS hardlinking is coming in v1.0.4. |
| 120 | +</Aside> |
| 121 | + |
| 122 | +</Before> |
| 123 | + |
| 124 | +<Since version="1.0.4"> |
| 125 | + |
| 126 | +- `mutable` (attribute): When `true`, content fetched into `.terragrunt-cache` through the |
| 127 | + [content-addressable storage (CAS)](/features/caching/cas) is copied from the CAS store instead of |
| 128 | + hardlinked. The default is `false`, which lets CAS hardlink files from its shared store for speed and |
| 129 | + deduplication. Hardlinked files inherit the store's read-only permissions, so the working tree is safe |
| 130 | + by default; set `mutable = true` when you want to edit files inside `.terragrunt-cache` directly. The |
| 131 | + flag has no effect when CAS is not used to fetch the source; the standard download path already |
| 132 | + produces an independent, writable copy. |
| 133 | + |
| 134 | +</Since> |
| 135 | + |
121 | 136 | In addition to supporting before and after hooks for all OpenTofu/Terraform commands, the following specialized hooks are also |
122 | 137 | supported: |
123 | 138 |
|
|
0 commit comments