Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
HCP Terraformを使ったら AWSやGCPの環境構築が捗った話
Search
Atsushi Satou
October 14, 2024
Programming
0
86
HCP Terraformを使ったら AWSやGCPの環境構築が捗った話
HCP Terraformを使ったら AWSやGCPの環境構築が捗った話.pdf
Atsushi Satou
October 14, 2024
Tweet
Share
More Decks by Atsushi Satou
See All by Atsushi Satou
図で理解するAWS Network Firewallのアーキテクチャ
atsuw0
0
69
CLIで構築した方が良いもの一覧.pdf
atsuw0
0
81
HashicorpCloudについて.pdf
atsuw0
0
10
HCP Terraform について
atsuw0
0
1.6k
HashicorpCloudについて.pdf
atsuw0
0
16
AWS サーバレス設計 Tips集
atsuw0
0
90
AWS re:Invent 2023 ストレージ EFSレプリケーションのフェイルバック機能を試してみた
atsuw0
0
280
AWS re:Invent 2023 個人的に興味深いもの集
atsuw0
0
76
AWS Signerでコード署名についてまとめてみた
atsuw0
1
920
Other Decks in Programming
See All in Programming
盆栽転じて家具となる / Bonsai and Furnitures
aereal
0
3k
Compose でデザインと実装の差異を減らすための取り組み
oidy
1
280
[JAWS-UG横浜 #80] うわっ…今年のServerless アップデート、少なすぎ…?
maroon1st
1
150
『改訂新版 良いコード/悪いコードで学ぶ設計入門』活用方法−爆速でスキルアップする!効果的な学習アプローチ / effective-learning-of-good-code
minodriven
29
4.9k
知られざるDMMデータエンジニアの生態 〜かつてツチノコと呼ばれし者〜
takaha4k
3
1.1k
Linux && Docker 研修/Linux && Docker training
forrep
23
4.2k
自動で //nolint を挿入する取り組み / Gopher's Gathering
utgwkk
1
200
ATDDで素早く安定した デリバリを実現しよう!
tonnsama
1
2.5k
サーバーゆる勉強会 DBMS の仕組み編
kj455
1
370
Simple組み合わせ村から大都会Railsにやってきた俺は / Coming to Rails from the Simple
moznion
3
3.9k
Kanzawa.rbのLT大会を支える技術の裏側を変更する Ruby on Rails + Litestream 編
muryoimpl
0
140
watsonx.ai Dojo #6 継続的なAIアプリ開発と展開
oniak3ibm
PRO
0
270
Featured
See All Featured
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
29
2.2k
YesSQL, Process and Tooling at Scale
rocio
171
14k
Speed Design
sergeychernyshev
25
760
Building Applications with DynamoDB
mza
93
6.2k
The Cost Of JavaScript in 2023
addyosmani
47
7.3k
Facilitating Awesome Meetings
lara
51
6.2k
BBQ
matthewcrist
86
9.4k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.3k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
120k
Bash Introduction
62gerente
610
210k
How to train your dragon (web standard)
notwaldorf
90
5.8k
Automating Front-end Workflow
addyosmani
1367
200k
Transcript
HCP Terraformを使ったら AWSやGCPの環境構築が捗った話 佐藤 淳 Toranomon Tech Hub 第一回 ~好きなクラウドサービス紹介
LT大会~ https://toranomon-tech-hub.connpass.com/event/331981/
自己紹介 名前: 佐藤 淳 ( Atsushi Sato ) 会社: 某虎ノ門にオフィスあるAWSが得意な会社
(今日は個人的な参加) 職業: インフラエンジニア Qiita: https://qiita.com/atw0_0w 後期から月 4件以上更新でブログ頑張るよ 💪
HCP Terraform とは?
・Hashicorp社によってGolangで開発されたオープンソース ・Infrastructure as Code (IaC) を実現するソフトウェアツール > ※ IaC ..
インフラの定義をテンプレート化したもの ・マルチプロバイダーで利用可能 (AWS, GCP, etc ..) そもそもTerraformとは? $ terraform init … terraform の初期化 $ terraform plan … テンプレートファイルのドライラン $ terraform apply … テンプレートファイル内のリソースを作成 $ terraform destroy … リソースを削除
課題 その①
課題 その②
- HashiCorp Cloud Platform (HCP) Terraform は、Terraformを組織やチームごと管理でで きる SaaSサービス (元々は
Terraform Cloud というサービスだったが、2024/04よりHCPに統合 ) - CI/CDパイプラインを予め作成する必要なく、 plan/applyのパイプラインが作成可能。 → リポジトリへpullreq / mergeでトリガー - チーム/ユーザーごとのアクセス権の管理 - マルチプロバイダー下でのstateファイルの 統合管理 - 他にもプライベートレジストリ等 便利な機能がいっぱい。 HCP Terraform とは ?
HCP Terraform 仕組み 参考: https://developer.hashicorp.com/terraform/cloud-docs
[機能] ワークスペースで実行結果および履歴を確認可能
[機能] tfstateの確認
[機能] Terraform実行バージョンを選択
[機能] プライベートレジストリ - Organizations下のアクセス権が付与されていれば、誰でもモジュールを レジストリから呼び出し可能 に。 - バージョン管理機能(Tag or Branch)。任意のバージョンを指定して利用可能。
- リポジトリ名は「terraform-<provider>-<name>」と先頭にterraformをつける必要がある。 参考: https://developer.hashicorp.com/terraform/cloud-docs/registry/publish-modules
[機能] チームによるアクセス制御 参考: https://developer.hashicorp.com/terraform/cloud-docs/users-teams-organizations/teams
HCP Terraform 環境を試してみたいなら 右のような環境を構築するためのテンプレートを 作成しましたので試してみたい方は是非 🙏 [リポジトリ ] - https://github.com/atsw0q0/terraform-tfe-templates
[ブログ] - https://qiita.com/atw0_0w (HCP Terraform について絶賛更新中!! )
まとめ
ご清聴ありがとうございました