Open7
terraformメモ
![merutin](https://res.cloudinary.com/zenn/image/fetch/s--lldfA_zR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_70/https://storage.googleapis.com/zenn-user-upload/avatar/bc8be3bc97.jpeg)
gitで特定のcommitを利用する
![merutin](https://res.cloudinary.com/zenn/image/fetch/s--lldfA_zR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_70/https://storage.googleapis.com/zenn-user-upload/avatar/bc8be3bc97.jpeg)
プロバイダを配置する
サードパーティにより配布されているプロバイダーについては以下のディレクトリから検索される
カレントディレクトリ
Terraform本体と同じディレクトリ
カレントユーザーのApplication Data配下のterraform.d/plugins/配下(Windows環境)
カレントユーザーのホームディレクトリ配下の.terraform.d/plugins/配下(非Windows環境)
![merutin](https://res.cloudinary.com/zenn/image/fetch/s--lldfA_zR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_70/https://storage.googleapis.com/zenn-user-upload/avatar/bc8be3bc97.jpeg)
特に古いプロバイダはレジストリから取得できない場合があるので、その場合は手動で配置する必要がある。
![merutin](https://res.cloudinary.com/zenn/image/fetch/s--lldfA_zR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_70/https://storage.googleapis.com/zenn-user-upload/avatar/bc8be3bc97.jpeg)
outputの参照
![merutin](https://res.cloudinary.com/zenn/image/fetch/s--lldfA_zR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_70/https://storage.googleapis.com/zenn-user-upload/avatar/bc8be3bc97.jpeg)
terragruntでモジュールへのアクセスは//を利用する
(Note: the double slash (//) in the source parameter is intentional and required. It’s part of Terraform’s Git syntax for module sources. Terraform may display a “Terraform initialized in an empty directory” warning, but you can safely ignore it.)
![merutin](https://res.cloudinary.com/zenn/image/fetch/s--lldfA_zR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_70/https://storage.googleapis.com/zenn-user-upload/avatar/bc8be3bc97.jpeg)
バージョンの指定方法
![merutin](https://res.cloudinary.com/zenn/image/fetch/s--lldfA_zR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_70/https://storage.googleapis.com/zenn-user-upload/avatar/bc8be3bc97.jpeg)
これ便利だわ