file-data

Invicton-Labs/file-data/local

Terraform Module HCL LOCAL
Install
module "file-data" {
source = "Invicton-Labs/file-data/local"
version = "0.2.0"
}
plain text: /constructs/tfmod-invicton-labs-file-data-local/install.txt
⭐ Source on GitHub 📦 Registry page
README

!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

Inputs (12)
NameTypeDescriptionDefault
filenamestringThe path of the file to create. required
content_base64stringThe base64 encoded content of the file to create. Use this when dealing with bin required
max_charactersnumberThe maximum number of characters that the file will contain. This is only to be required
dynamic_depends_onanyHas the same functionality as the built-in `depends_on` field, but allows specif required
contentstringThe content of the file to create. Conflicts with `content_base64`. required
force_wait_for_applyboolWhether to force this module to wait for apply-time to execute the shell commandfalse
appendboolWhether to append to the file instead of overwriting it. CAUTION: this will appefalse
force_update_last_modifiedboolBy default, this module will not do anything if there is already a local file wifalse
unix_interpreterstringThe interpreter to use when running commands on a Unix-based system. This is pri"/bin/sh"
file_permissionstringThe permission to set for the created file. Expects a 4-character string (e.g. ""0777"
directory_permissionstringThe permission to set for any directories created. Expects a 4-character string "0777"
chunk_sizenumberSet this variable to override the default per-file chunk size. This is generally749968
Outputs (15)
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 us
filename — 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
Details
FrameworkTerraform Module
LanguageHCL
Version0.2.0
Cloud LOCAL
Total downloads48.3k
Inputs12
Outputs15
NamespaceInvicton-Labs
Updated