GCPをテラフォーミングして来ました

dictav
dictav
Feb 23, 2017 · 3 min read

GCP にはずっと興味がありつつも、なかなか気合い入れて触る機会もなくダラダラ過ごしていたのですが、テラフォーミングするということで藤沢まで行って来ました。新宿から藤沢は1時間600円弱で行けるんですね。近いですね :)

GCPUG Shonan に光が丘のぼくが参加して良いものか迷いましたが湘南は範囲が広いようなので光が丘も湘南を名乗って良いようです。

テラフォーミングを学ぶ

HashiCorp さんのツール全然使いこなせてない。。

terraform を使うと AWS や GCP にインスタンスを立ち上げることができます。今回はそんな terraform + GCP のハンズオンを行なっていただきました。詳細はイベントページの資料にあるのでそちらをどうぞ。

初めて terraform を使いましたが、イイですね

  • terraform fmt/plan/apply のコンビネーションは強力
  • *.tfstate ファイルを最高
  • terraform remote pull/push で状態を共有できるのイイ

なぜテラフォーミングするのか

特定の環境を作ってテストをしたいことが割とあるのですが、毎回ブラウザや gcloud コマンドで構築するのは大変だし忘れがちです。gcloud + shellでも似たようなことはできそうですが、terraform の方がスマートです。継続的な環境構築では .tfstate と remote はすごく便利そうです。

次は terraform + GCP で GKE 環境を構築したい!


夕方から外せない用事があったため懇親会は出れませんでした。GCPUG Shonan の雰囲気はすごく楽しくて、また参加したいです。今度は懇親会まで出たい!

dictav

Written by

dictav

Go/Objective-C/Ruby dictav=ShintaroAbe 1981,scotch,coffee,bloodhitrstybutchers,elliotsmith,saga,Myth2,raymondcarver

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade