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
380
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
170
図で理解するAWS Network Firewallのアーキテクチャ
atsuw0
0
570
CLIで構築した方が良いもの一覧.pdf
atsuw0
0
200
HashicorpCloudについて.pdf
atsuw0
0
41
HCP Terraform について
atsuw0
0
1.9k
HashicorpCloudについて.pdf
atsuw0
0
49
AWS サーバレス設計 Tips集
atsuw0
0
140
AWS re:Invent 2023 ストレージ EFSレプリケーションのフェイルバック機能を試してみた
atsuw0
0
450
AWS re:Invent 2023 個人的に興味深いもの集
atsuw0
0
140
Other Decks in Programming
See All in Programming
Agentic Software Factoryに、すごく賢いIF文を。 / super smart IF statement into the Agentic Software Factory.
rkaga
8
2.4k
AI時代のTerminal環境を UNIX哲学で設計・運用する
yasunori0418
1
260
オーケストレーション記述言語 Katari
yukikurage
0
200
作れる、でも消せるか?──安全に「枯らして消す」機能削除術 / Drain, Then Delete
chobishiba
2
1k
ActionController meets Protocol Buffers
sorah
1
720
R8 の設定見直しでアプリサイズ削減
andpad
0
230
コーディング自動化の次へ。人の介入をゼロにするファクトリーとサポートAIによる実践
timakin
5
4.7k
contenteditable と日本語入力に向き合う
colorful12
0
220
Vue.jsで作る空間解析アプリとCapacitorプラグインのData Bridge
hal_spidernight
1
110
Vue Fes Japan の “作る側”に関わってみて
naokihaba
1
190
조합이폭발하는디자인시스템이걸눈으로도테스트하라고요
giljongyu
0
600
なぜCTOを降りてFDEを選んだのか?〜なぜプロダクト企業がFDEで顧客の現場に踏み込むのか〜
gonta
1
240
Featured
See All Featured
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
550
Joys of Absence: A Defence of Solitary Play
codingconduct
1
550
How to train your dragon (web standard)
notwaldorf
96
6.9k
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.8k
Into the Great Unknown - MozCon
thekraken
41
2.8k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2.1k
Building the Perfect Custom Keyboard
takai
2
920
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.4k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
420
sira's awesome portfolio website redesign presentation
elsirapls
0
470
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
640
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 について絶賛更新中!! )
まとめ
ご清聴ありがとうございました