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
250
0
Share
HCP Terraformを使ったら AWSやGCPの環境構築が捗った話
HCP Terraformを使ったら AWSやGCPの環境構築が捗った話.pdf
Atsushi Satou
October 14, 2024
More Decks by Atsushi Satou
See All by Atsushi Satou
AWS ECSでサービス間通信についておさらい
atsuw0
1
120
図で理解するAWS Network Firewallのアーキテクチャ
atsuw0
0
390
CLIで構築した方が良いもの一覧.pdf
atsuw0
0
170
HashicorpCloudについて.pdf
atsuw0
0
27
HCP Terraform について
atsuw0
0
1.8k
HashicorpCloudについて.pdf
atsuw0
0
35
AWS サーバレス設計 Tips集
atsuw0
0
120
AWS re:Invent 2023 ストレージ EFSレプリケーションのフェイルバック機能を試してみた
atsuw0
0
410
AWS re:Invent 2023 個人的に興味深いもの集
atsuw0
0
120
Other Decks in Programming
See All in Programming
HTML-Aware ERB: The Path to Reactive Rendering @ RubyKaigi 2026, Hakodate, Japan
marcoroth
0
460
🦞OpenClaw works with AWS
licux
1
300
[RubyKaigi 2026] Require Hooks
palkan
1
250
Going Multiplatform with Your Android App (Android Makers 2026)
zsmb
2
460
Lightning-Fast Method Calls with Ruby 4.1 ZJIT / RubyKaigi 2026
k0kubun
3
1.8k
アクセシビリティ試験の"その後"を仕組み化する
yuuumiravy
1
180
ふりがな Deep Dive try! Swift Tokyo 2026
watura
0
250
GoogleCloudとterraform完全に理解した
terisuke
1
160
Kubernetes上でAgentを動かすための最新動向と押さえるべき概念まとめ
sotamaki0421
3
770
UIの境界線をデザインする | React Tokyo #15 メイントーク
sasagar
2
400
セグメントとターゲットを意識するプロポーザルの書き方 〜採択の鍵は、誰に刺すかを見極めるマーケティング戦略にある〜
m3m0r7
PRO
0
640
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
230
Featured
See All Featured
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
250
Git: the NoSQL Database
bkeepers
PRO
432
67k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.4k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
230
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.5k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
270
Typedesign – Prime Four
hannesfritz
42
3k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.7k
Statistics for Hackers
jakevdp
799
230k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
140
Marketing to machines
jonoalderson
1
5.2k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
170
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 について絶賛更新中!! )
まとめ
ご清聴ありがとうございました