基本上 terragrunt 的使用和 terraform 都一樣,所以才說 terragrunt 是一層 wrapper。
terragrunt init terragrunt plan terragrunt apply
和 terraform 都一樣對吧 !
變數管理也是一個讓 code 更加 DRY 的方式之一, terragrunt 有蠻多傳遞變數的方式,這邊舉例 inputs
前段時間社群上有人 po 出 GCP 和 AWS 的比較,然後測出 GCP 慘烈的 VM 生成時間和一堆 409 錯誤,聽說有驚動 Google 高層(
怕.jpg)。那現在我們來針對該作者開源的測試程式來看看吧!
這題需求是要合併 k 個 linked-list 成一個大的 linked-list,每個 linked-list 都是有序的,且大的 linked-list 也必須是有序的,是 LeetCode21. Merge Two Sorted Lists 的進階題,但本題可用 min heap 解題,還蠻巧妙的,故紀錄一下。
Java 8 因為引入了 lambda 這樣的 functional 函數,所以 Map 系列增加了一些方法,感覺還是很好用的,簡單做一些相關介紹 …
Provide 是整個 terraform 最重要的元件,是決定要對哪一個平台操作 (e.g. AWS, Azure, gcp),負責和雲端 API 的接口交互,可以在不了解 API 細節的情況下,通過 terraform 來編排資源。