download

dealmore/download/npm

Terraform Module HCL NPM

Terraform module for downloading files from npm.

Install
module "download" {
source = "dealmore/download/npm"
version = "2.1.0"
}
plain text: /constructs/tfmod-dealmore-download-npm/install.txt
⭐ Source on GitHub 📦 Registry page
README

NPM Download Terraform module ![CI](https://github.com/milliHQ/terraform-npm-download/actions/workflows/CI.yml) A simple Terraform module to download files distributed via npm. Usage The module requires that bash and curl are installed on the system where Terraform is executed. ``hcl module "npm_download" { source = "milliHQ/download/npm" module_name = "@millihq/tf-next-image-optimization" module_version = "11.1.2" path_to_file = "dist.zip" } output "file_path" { value = module.npm_download.abs_path } ` Requirements | Name | Version | |------|---------| | terraform | >= 0.13 | | external | >= 1.2.0 | Providers | Name | Version | |------|---------| | external | >= 1.2.0 | Inputs | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| | cdn\_prov

Inputs (6)
NameTypeDescriptionDefault
module_namestringThe name of the npm module. required
path_to_filestringThe path inside of the npm module to the file you want to download. required
local_cwdstringRoot path where node.resolve should start looking for the local module. required
module_versionstringIf you want a specific version (or semver range) of the module define it here.""
use_localboolFallback for using node.resolve for getting the module locally. Usually used forfalse
cdn_provider_urlstringThe service that should be used for unpacking. jsdelivr or unpkg should work."https://cdn.jsdelivr.net/npm/"
Outputs (2)
abs_path — The absolute path to the downloaded file on the local file system.
rel_path — The cwd based relative path to the downloaded file on the local file system.
Topics & Tags
terraform-module
Details
FrameworkTerraform Module
LanguageHCL
Version2.1.0
Cloud NPM
★ Stars3
Forks4
Total downloads33.9k
Inputs6
Outputs2
Examples1
LicenseApache-2.0
Namespacedealmore
Updated