Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
HCP Terraformを使ったら AWSやGCPの環境構築が捗った話
Search
Atsushi Satou
October 14, 2024
Programming
330
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
150
図で理解するAWS Network Firewallのアーキテクチャ
atsuw0
0
510
CLIで構築した方が良いもの一覧.pdf
atsuw0
0
190
HashicorpCloudについて.pdf
atsuw0
0
39
HCP Terraform について
atsuw0
0
1.9k
HashicorpCloudについて.pdf
atsuw0
0
42
AWS サーバレス設計 Tips集
atsuw0
0
140
AWS re:Invent 2023 ストレージ EFSレプリケーションのフェイルバック機能を試してみた
atsuw0
0
450
AWS re:Invent 2023 個人的に興味深いもの集
atsuw0
0
130
Other Decks in Programming
See All in Programming
AIの中の人になってみる
htkym
0
170
Foundry Localでエージェント開発
seosoft
0
170
[DroidKaigi 2026] Bring your own phones to Gradle Managed Devices
f2lk
0
110
Intent as Code
shoppingjaws
6
840
iOS開発×AI駆動開発 〜最近使って便利だったスキルの話〜
nogu66
0
140
市販E-Readerを乗っ取れ 〜Embedded Swiftで電子ペーパーガジェットを制御する〜
trickart
0
160
型解析で実現する Go の言語内 DSL / Conference に Go! タイムテーブルの歩き方 for Gophers
mazrean
0
140
RSSとCodexを使ってX投稿自動化してみた
ochtum
0
110
『寄り添うラジオ』をAIで作る 体験価値から逆算した、会話しないUXと品質設計
theoriatec2024
3
150
AWS Step Functions 大規模並列の壁を越える / jaws-sonic-2026-niigata-step-functions
kasacchiful
PRO
1
430
thread_parallel_with_free-threaded_Python_and_NumPy.pdf
riku_sakamoto
0
280
フロントエンドUIフレームワークのこれまでとこれから
ssssota
5
2.3k
Featured
See All Featured
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
590
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.4k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
Side Projects
sachag
456
43k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.8k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2.1k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.4k
A designer walks into a library…
pauljervisheath
211
25k
Un-Boring Meetings
codingconduct
0
410
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
4.7k
How STYLIGHT went responsive
nonsquared
100
6.3k
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 について絶賛更新中!! )
まとめ
ご清聴ありがとうございました