file-resource
Invicton-Labs/file-resource/local
Terraform Local File (Resource) On the Terraform Registry: Invicton-Labs/file-resource/local This module serves the same function as the local_file resource, but allows creation of files larger than 4MB, which is currently not possible with the local_file resource. It works by using the Invicton-Labs/file-data/local module internally to create a large file, along with a null_resource to track the state. This module has been tested on Linux and Windows, but not macOS. In theory, it should function on any Unix-based OS that supports bash and base64 commands, or any Windows-based OS that supports PowerShell. Limitations - The file_permission and directory_permission variables have no effect when running on Windows, as PowerShell has no chmod equivalent. Usage `` module "local-file-resource" {
| Name | Type | Description | Default |
|---|---|---|---|
| override_chunk_size | number | Set this variable to override the default per-file chunk size. This is generally | required |
| max_characters | number | The maximum number of bytes that the file will contain. This variable is used to | required |
| filename | string | The path of the file to create. | required |
| content | string | The content of the file to create. Conflicts with `content_base64`. | required |
| content_base64 | string | The base64 encoded content of the file to create. Use this when dealing with bin | required |
| directory_permission | string | The permission to set for any directories created. Expects a 4-character string | "0777" |
| file_permission | string | The permission to set for the created file. Expects a 4-character string (e.g. " | "0777" |
complete — A bool that can be used for dependencies, as it doesn't return a value until everything in this modufilename — The path to the file that was created. Does not return until the file has been created.