地形初始助推器
tf-init-booster的Python项目详细描述
地形初始助推器
一个预terraform例程,可加速terraform模块下载以获得庞大的蓝图。
问题陈述
- terraformv0.12.x和更旧版本的模块从git源代码下载,每次使用(https://github.com/hashicorp/terraform/issues/11435)。对于具有数百个类似模块的庞大蓝图,这些模块使
terraform init
的过程变慢。在
安装
pip install tf-init-booster
快速启动
^{pr2}$带有环境变量的设置
- LOGLEVEL=信息
- GIT_路径=/usr/bin/GIT
使用说明
- Git作为模块源
- 具有相同源的多个模块
性能
基于580个模块的蓝图,其中10个是独一无二的。在
- 纯
terraform init
-3m08s - 增强+
terraform init
-39s(2.7s+36.5s)
兼容性
为terraform v0.12和v0.11设计
要求
- Python 3.6+
- (可选)gitpython*模块
*否则将使用system git
- 项目
标签: