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
Pulumiを触ってみよう
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
YouYou
August 26, 2023
Programming
2.8k
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Pulumiを触ってみよう
関連記事↓
https://zenn.dev/yuta28/articles/migration-terraform-to-pulumi
YouYou
August 26, 2023
More Decks by YouYou
See All by YouYou
AWSマネコンに複数のアカウントで入れるようになりました
yuhta28
2
310
今インフラ技術をイチから学び直すなら
yuhta28
1
320
AWSに詳しくない人でも始められるコスト最適化ガイド
yuhta28
3
700
Datadog外形監視基盤をEC2から ECSへ移行してみた
yuhta28
0
1.9k
アウトプット頑張ったら企業からLT登壇の依頼がきた話
yuhta28
1
1.9k
小さなことから始めるAWSコスト最適入門
yuhta28
1
1.5k
Datadogのコストも監視しよう
yuhta28
1
1.1k
Rcloneを使った定期的なストレージ同期
yuhta28
0
880
ログストレージコスパ最強!?OpenObserveを試してみた
yuhta28
0
6.5k
Other Decks in Programming
See All in Programming
Go × SIMDで高速化するベクトル検索 ~ルーフラインモデルでSIMDが効く境界を探れ! ~
po3rin
1
3.9k
スマートフォンでモールス信号を送受信する 〜スマートフォンのLEDとカメラで作る光通信の設計と実装〜
atsuki_seo
0
190
Apple Intelligence を用いた個人情報誤送信防止、及びユーザーリクエスト体験の改善について
yukiny
0
180
thread_parallel_with_free-threaded_Python_and_NumPy.pdf
riku_sakamoto
0
360
カツオ、ご期待ください
suneo3476
0
100
スマート反転とウェブアクセシビリティ
camiha
0
210
MVNOの申込からeSIM開通までをiOSアプリでつなぐ- 本人確認・MNP・通信事業者基盤をまたぐ実装
satotakeshi
0
490
Java 27新機能 / Java 27 new features
kishida
2
170
iOS 27でニュースアプリはどう変わる!? 〜日経電子版の新機能対応と、開発事例から〜
lynnswap
7
13k
JAWS-UG 東京支部が始める、JAWS-UG支部コラボ / JAWS-UG lunchtime LT Collaboration
y0hgi
0
160
FreeBSDでZabbixを動かす
kenkino
0
330
Omarchy Tokyo やると聞いて UMPC 買ってセットアップしてきた
mtsmfm
0
160
Featured
See All Featured
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
50
10k
From π to Pie charts
rasagy
1
380
Bootstrapping a Software Product
garrettdimon
PRO
306
120k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
3.1k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
420
Tell your own story through comics
letsgokoyo
1
1.1k
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
440
Optimizing for Happiness
mojombo
378
71k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
290
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
710
Transcript
Pulumiを触ってみよう 1
Name:ユータ Occupation:SRE X:@Y0u281 (オーでなくゼロです) ブログ:https://zenn.dev/yuta28 自己紹介 X QRコード 2
目次 • IaCの課題 • Pulumiとは • VS Terraform & AWS
CDK • Terraformからの移行 • まとめ 3
課題 Terraform • 独自言語の学習コスト • stateファイルの管理 • ライセンス問題 4 AWS
CDK • AWSでしか使えない • CI/CD基盤の構築 • プログラミング知識が必要
5
Pulumiとは • JS/TS、Python、Go、YAMLでIaC • AWS以外にもK8SやDatadogなど100以上のパッケージを提供 • 構成管理を管理してくれるマネージドなPulumi Cloud • 他ツールから移行もサポート
6
VS Terraform & AWS CDK Terraform • 独自言語の学習コスト ◦ プログラミング言語可
• stateファイルの管理 ◦ デフォルトでPulumi Cloud提供 • ライセンス問題 ◦ 真のオープンソースを目指す(らし い) 7 AWS CDK • AWSでしか使えない ◦ GCPやAzureにも可能 • CI/CD基盤の構築 ◦ Pulumi Cloudが構築 • プログラミング知識が必要 ◦ YAMLファイルでも可
Terraformからの移行 8 resource "random_string" "s3_bucket_name" { length = 8 special
= false upper = false } # Create S3 resource "aws_s3_bucket" "migration_S3" { bucket = "yuta-${random_string.s3_bucket_name.id}" } S3作成サンプルコード
Terraformからの移行 # pulumi convert --from terraform --language typescript {-out 出力先ディレクトリ}
9
Terraformからの移行 10 import * as pulumi from "@pulumi/pulumi" ; import
* as aws from "@pulumi/aws" ; import * as random from "@pulumi/random" ; const s3BucketName = new random.RandomString("s3BucketName" , { length: 8, special: false, upper: false, }); // Create S3 const migrationS3 = new aws.s3.BucketV2("migrationS3" , {bucket: pulumi.interpolate`yuta-${s3BucketName.id}` });
まとめ 11 • 多言語サポートやクロスプラットフォーム • コンバートツールは良さそう • インポートツールが欲しい
ありがとうございました より詳しい内容は以下のブログで↓ TerraformからPulumiへの移行方法 (https://zenn.dev/yuta28/articles/migr ation-terraform-to-pulumi) 12