Automation - Terraform

最後更新: 2023-05-05

介紹

Terraform

open-source infrastructure-as-code software tool

功用:

 * Standardize your deployment workflow (consistent, repeatable(reuse and share))
 * Track your infrastructure (versioning)

Terraform CLI

manage infrastructure, and interact with Terraform state, providers, configuration files, and Terraform Cloud.

構成

Resource

A resource belongs to a provider, accepts arguments, outputs attributes, and has a lifecycle.
(aws_vpc, aws_subnet, aws_route_table)

Resource module

多個 Resource 組合一起. 寫 Program/Share 的地方
(terraform-aws-vpc)

https://github.com/terraform-aws-modules/

Infrastructure module

一堆 module 的組合, 它們沒有直接連接, 但在用一 Project 內

 


 

Creative Commons license icon Creative Commons license icon