Open3
terraform x gcp 素振り
![tkc310](https://res.cloudinary.com/zenn/image/fetch/s--ut0CL-QF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_70/https://storage.googleapis.com/zenn-user-upload/avatar/614e0411ac.jpeg)
業務で使う必要が出てきたため調査する。
参考資料
![tkc310](https://res.cloudinary.com/zenn/image/fetch/s--ut0CL-QF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_70/https://storage.googleapis.com/zenn-user-upload/avatar/614e0411ac.jpeg)
Google Cloud SDK
- gcpアカウント作成
- プロジェクト作成
- 支払い設定からクレカを登録 (無料クレジットが付与される)
- SDK CLIインストール
$ ./google-cloud-sdk/install.sh
$ ./google-cloud-sdk/bin/gcloud init
# => ログインとプロジェクト指定
- Cloud Resource Manager APIの有効化
gcloud services enable compute.googleapis.com
gcloud services enable storage-component.googleapis.com
gcloud services enable storage.googleapis.com
![tkc310](https://res.cloudinary.com/zenn/image/fetch/s--ut0CL-QF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_70/https://storage.googleapis.com/zenn-user-upload/avatar/614e0411ac.jpeg)
terraformインストール
$ asdf plugin add terraform
$ asdf install terraform latest
$ asdf global terraform 1.5.6
$ terraform -v
$ => 1.5.6