【文件属性】:
文件名称:terraform-npm:用于HashiCorp Terraform的NPM可执行软件包
文件大小:17KB
文件格式:ZIP
更新时间:2021-05-15 06:45:29
automation terraform npm-package executable hashicorp
terraform-npm
用于HashiCorp的Terraform的NPM可执行软件包。
前言
我将组装到NPM软件包中,以便将其包含在依赖于可执行文件的其他项目中。 我希望能够使用如下脚本发布NPM模块:
{
" scripts " : {
" plan " : " terraform plan -out=my-tfplan "
}
}
但不必担心要求用户从外部下载Terraform。
安装
要将Terraform用作NPM软件包,请将其包含在package.json依赖项中:
# If you're using Yarn (recommended):
yarn add terraform-npm
# If you're using NPM:
npm i terraform-npm
或者,如果您希望可以一次运行的一次性安装,请在全局范围内安装它:
【文件预览】:
terraform-npm-master
----yarn.lock(7KB)
----src()
--------terraform-wrapper.js(563B)
--------install-terraform()
----.npmignore(188B)
----.prettierrc.json(145B)
----.travis.yml(1KB)
----README.md(2KB)
----.editorconfig(154B)
----tests()
--------global-runner.sh(72B)
--------installed-correctly.test.js(459B)
--------installed-correctly-global.test.js(484B)
--------runner.sh(65B)
--------installed-correctly-common.js(308B)
----.gitignore(549B)
----package-lock.json(10KB)
----package.json(1KB)