heyday/xterraform
Composer 安装命令:
composer require heyday/xterraform
包简介
xTerraform package will provide project with easily scalable and maintainable cloud infrastructure.
README 文档
README
xTerraform package will provide project with easily scalable and maintainable cloud infrastructure.
Contents
Requirements
-
Install Terraform CLI in your machine: [https://www.terraform.io/downloads.html].
-
Optionally:
- For AWS infrastructure:
- Install AWS CLI in your machine: [https://aws.amazon.com/cli/].
- Verify or update AWS CLI credential: [https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html].
- For AWS infrastructure:
Installation
Installation of xTerraform is per project basis. So do the following:
-
Open terminal, change directory to current project root folder.
-
Install xTerraform:
composer require heyday/xterraform --dev. -
Create folder to contain terraform templates, for example:
mkdir -p .xterraform/test. -
Publish Terraform templates to desired directory:
cp -R vendor/heyday/xterraform/terraform/ .xterraform/test. -
Navigate to that directory:
cd .xterraform/test. -
Update
values.tfvarsas needed. -
Initialize Terraform:
terraform init.
Optionally you can add
*.tfto.gitignorefile, so all templates files will not be tracked by version control.
Application
- Apply infrastructure:
terraform apply -var-file=values.tfvars
Destruction
- Destroy infrastructure:
terraform destroy -var-file=values.tfvars
统计信息
- 总下载量: 92
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-01-22