This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
在這個檔案中可以事先定義建立完成時想要顯示的資訊,因為有些服務的重要資訊是建立後才會生成,例如 web server 的 URL,我們想要在建立後就能直接複製網址並前往,這時候 outputs.tf 就很實用。
另外一個好處是,有設定 outputs 的話就可以在 terraform plan 後看到部分資訊,像是 table names 等,也可以當作快速驗證架構變更時的依據。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BigQuery Table 如果需要變更 Schema 或 Data Type,Terraform 會把 Table 刪除後重建,導致資料遺失,記得要備份!
Terraform 帶來的好處
簡化設定雲端的過程
降低錯誤率
可自動化
可重複使用
可版本控管
可分享共用協作
可快速搬遷架構及開發環境
後記
現在許多公司在招募 Data Engineer 的 JD 上會將 Terraform 列在加分技能項目,我個人認為在快速發展的 AI 時代下,現代數據架構很重要的一個概念就是架構必須要夠彈性、可以隨時做抽換,並且要能快速在雲端上部署數據產品,所以我覺得 Terraform 毫無疑問將會成為 Data Engineer 資料工程師的重要必備技能之一。