file-resource

Invicton-Labs/file-resource/local

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

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" {

Inputs (7)
NameTypeDescriptionDefault
override_chunk_sizenumberSet this variable to override the default per-file chunk size. This is generally required
max_charactersnumberThe maximum number of bytes that the file will contain. This variable is used to required
filenamestringThe path of the file to create. required
contentstringThe content of the file to create. Conflicts with `content_base64`. required
content_base64stringThe base64 encoded content of the file to create. Use this when dealing with bin required
directory_permissionstringThe permission to set for any directories created. Expects a 4-character string"0777"
file_permissionstringThe permission to set for the created file. Expects a 4-character string (e.g. ""0777"
Outputs (2)
complete — A bool that can be used for dependencies, as it doesn't return a value until everything in this modu
filename — The path to the file that was created. Does not return until the file has been created.
Resources (1)
null_resource
Details
FrameworkTerraform Module
LanguageHCL
Version0.1.0
Cloud LOCAL
Total downloads504
Inputs7
Outputs2
Resources1
NamespaceInvicton-Labs
Updated