file-data
Invicton-Labs/file-data/local
!Build Terraform Local File (Data) On the Terraform Registry: Invicton-Labs/file-data/local This module functions similarly to the local_file resource, but acts as a data source instead of a resource. Specifically, if all input values are known at plan time, it will create the file during the plan step. If a file already exists with the same contents, it will not overwrite the file. It will also not update the file's last modified timestamp unless the relevant input variable is set. This module also optionally supports "large" files. The local_file resource has a hard limit of 4MB; if you want to create files larger than 4MB, you can use the max_characters variable of this module to enable support for files with no size limits. Note, however, that Terraform will still run slowly when deali
| Name | Type | Description | Default |
|---|---|---|---|
| filename | string | The path of the file to create. | required |
| content_base64 | string | The base64 encoded content of the file to create. Use this when dealing with bin | required |
| max_characters | number | The maximum number of characters that the file will contain. This is only to be | required |
| dynamic_depends_on | any | Has the same functionality as the built-in `depends_on` field, but allows specif | required |
| content | string | The content of the file to create. Conflicts with `content_base64`. | required |
| force_wait_for_apply | bool | Whether to force this module to wait for apply-time to execute the shell command | false |
| append | bool | Whether to append to the file instead of overwriting it. CAUTION: this will appe | false |
| force_update_last_modified | bool | By default, this module will not do anything if there is already a local file wi | false |
| unix_interpreter | string | The interpreter to use when running commands on a Unix-based system. This is pri | "/bin/sh" |
| file_permission | string | The permission to set for the created file. Expects a 4-character string (e.g. " | "0777" |
| directory_permission | string | The permission to set for any directories created. Expects a 4-character string | "0777" |
| chunk_size | number | Set this variable to override the default per-file chunk size. This is generally | 749968 |
unix_interpreter — The value of the `unix_interpreter` input variable, or the default value if the input was `null`.complete — Always `true`, but does not return until the file has been created.num_chunks — The number of chunks that the file was split into during the writing process (this output is only usfilename — The value of the `filename` input variable.content — The value of the `content` input variable.content_base64 — The value of the `content_base64` input variable.file_permission — The value of the `file_permission` input variable, or the default value if the input was `null`.dynamic_depends_on — The value of the `dynamic_depends_on` input variable.directory_permission — The value of the `directory_permission` input variable, or the default value if the input was `null`max_characters — The value of the `max_characters` input variable.chunk_size — The value of the `chunk_size` input variable, or the default value if the input was `null`.append — The value of the `append` input variable, or the default value if the input was `null`.force_update_last_modified — The value of the `force_update_last_modified` input variable, or the default value if the input was force_wait_for_apply — The value of the `force_wait_for_apply` input variable, or the default value if the input was `null`modified — Whether the file had been (or, if the file can't be created until apply-time, must be) modified. Wil