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
20210210 Terraform meetup ONLINE
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Taisei Ito
February 10, 2021
Technology
700
0
Share
20210210 Terraform meetup ONLINE
Taisei Ito
February 10, 2021
More Decks by Taisei Ito
See All by Taisei Ito
Grafana Meetup Japan Vol. 6
kaedemalu
1
750
Cloudflare Meetup Nagano Vol.3
kaedemalu
0
100
Cloudflare Meetup Nagano Vol.2
kaedemalu
0
2k
20220214_Future Tech Night
kaedemalu
0
2.5k
20210910_nyle
kaedemalu
0
1k
20210827 Future Tech Night
kaedemalu
0
4.5k
CNDO2021 Open Policy Agent
kaedemalu
1
1.4k
Future Talk Night 20201118
kaedemalu
0
240
20201114 GCPUG Shonan
kaedemalu
0
490
Other Decks in Technology
See All in Technology
AI時代に新卒採用、はじめました/junior-engineer-never-die
dmnlk
0
250
Bill One 開発エンジニア 紹介資料
sansan33
PRO
5
18k
Zero Data Loss Autonomous Recovery Service サービス概要
oracle4engineer
PRO
5
14k
Introduction to Sansan Meishi Maker Development Engineer
sansan33
PRO
0
380
AIがコードを書く時代の ジェネレーティブプログラミング
polidog
PRO
3
720
🀄️ on swiftc
giginet
PRO
0
340
あるアーキテクチャ決定と その結果/architecture-decision-and-its-result
hanhan1978
2
590
ふりかえりがなかった職能横断チームにふりかえりを導入してみて学んだこと 〜チームのふりかえりを「みんなで未来を考える場」にするプロローグ設計〜
masahiro1214shimokawa
0
360
Hooks, Filters & Now Context: Why MCPs Are the “Hooks” of the AI Era
miriamschwab
0
160
"SQLは書けません"から始まる データドリブン
kubell_hr
2
360
LLM とプロンプトエンジニアリング/チューターを定義する / LLMs and Prompt Engineering, and Defining Tutors
ks91
PRO
0
350
今年60歳のおっさんCBになる
kentapapa
1
370
Featured
See All Featured
Joys of Absence: A Defence of Solitary Play
codingconduct
1
340
SEO for Brand Visibility & Recognition
aleyda
0
4.5k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
First, design no harm
axbom
PRO
2
1.2k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
150
Faster Mobile Websites
deanohume
310
31k
Fashionably flexible responsive web design (full day workshop)
malarkey
408
66k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
1
180
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.4k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
310
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
199
73k
Transcript
ディレクトリ構成を 考えてみる #Terraform meetup ONLINE 21.2.10 Taisei Ito
自己紹介 • 伊藤 太斉(Taisei Ito) ◦ @kaedemalu(Twitter, Github) ◦ Future
Corporation ▪ Technology Innovation Group / DX Unit ◦ コンサルタント&インフラエンジニア ◦ #GCP # AWS #Terraform #Ansible • Community ◦ GCPUG Shonan Organizer ◦ CloudNative Days Committee
私のこれまで 2019 2020 2021 1年3ヶ月 • 既存プロジェクトの管理 • 新規プロジェクトのリソース作成 •
テンプレートの作成
私のこれまで 2019 2020 2021 1年3ヶ月 5ヶ月
私のこれまで 2019 2020 2021 1年3ヶ月 5ヶ月 • Terraformをメインとして構築 • ディレクトリ設計
◦ Ansible、Packerも含む • コードの規約
悩むディレクトリ構造
クラウドごと考えた設計が必要
なぜなら思想が違うから
お品書き • GCPだったら • AWSだったら • まとめ ※Workspacesを利用する設計(Moduleは出てきません
GCP 1
GCPの構成 • Organizationが最上位 • その配下に ◦ フォルダ ◦ プロジェクト •
Organizationリソースも ある 引用:組織をGCPのリソース階層にマッピングする
ディレクトリ構成にするなら • Organization ◦ Workspacesを利用する ことのないリソース • folder ◦ 利用しないケースもある
◦ Org、PJの紐付け • Project ◦ 環境断面をWorkspaces で切り替えできるコード 設計
考え方 • ProjectでIAMまで管理する ◦ グループなどはCloud Identityで管理 • Organizationレベルでしか使えないサービスがある ◦ ex.)
Security Command Center ※Cloud Identity:Googleが提供するID管理サービス
AWS 2
AWSの構成 • common ◦ IAMなど環境に 関わらず使うもの • service ◦ 環境ごとのリソースを
配置する
考え方 • アカウントの中で環境を切り替える工夫 ◦ Workspacesでしっかり管理する(手で触らせない • IAMなどは全体で利用するので共通として扱う
まとめ • クラウド毎の思想は知ること大事 • 似た環境、本番と検証などはできるだけWorkspaces • 運用環境などは別途ディレクトリ切ることもあり ◦ commonとは別のもの
フューチャーについて • 大崎にあるITコンサル会社 • 経営戦略から実装、運用までを全てこなす • ベンダーニュートラルの考え方 • 「ないものは作る」
こんな人がいます • Real World HTTPの著者 • Vue.jsのコミッター • Apache Software
Foundationのボードメンバー • OSS「Vuls」の作成者
ブログも出しています
~ fin ~