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
既存AWSリソースをTerraformで管理するのはつらいよ
Search
YouYou
August 25, 2022
Programming
550
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
既存AWSリソースをTerraformで管理するのはつらいよ
YouYou
August 25, 2022
More Decks by YouYou
See All by YouYou
AWSマネコンに複数のアカウントで入れるようになりました
yuhta28
2
320
今インフラ技術をイチから学び直すなら
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
890
Pulumiを触ってみよう
yuhta28
1
2.8k
Other Decks in Programming
See All in Programming
IBM Bob Dojo #1 仕様駆動開発入門
oniak3ibm
PRO
0
410
3回つくってわかった、 定期実行ジョブ基盤の本質情報
takai
0
530
最近”作らせてる” ローカルAIアプリの話
akit37
0
480
Lambda durable functionsでHuman in the Loopを楽に…楽に……
har1101
0
140
月間100万人のサービス刷新で、 技術選定をHonoに振り切った話
yutobara
8
6.7k
ActionController meets Protocol Buffers
sorah
0
570
contenteditable と日本語入力に向き合う
colorful12
0
200
Verilogで学ぶCPU自作入門
uyuki234
8
4.2k
[2026-10-14](C)Re:ゼロから始める異世界生活〜始まりの終わりと終わりの始まり〜
tosite
0
120
S3 TablesのIcebergデータに、AIエージェントからアクセスしてみた / 20261016developersio2026joetsu-accessing-iceberg-in-s3tables-via-agent
kasacchiful
PRO
0
170
[2026-09-26]空論ジェネリックプロセス~テスト資産とAIで紡ぐ、再現可能なパフォーマンスチューニングの話~
tosite
0
270
気持ちぃ〜角丸 Squircle
ryu1013
0
320
Featured
See All Featured
Six Lessons from altMBA
skipperchong
29
4.5k
Fantastic passwords and where to find them - at NoRuKo
philnash
53
4k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
3k
Building Better People: How to give real-time feedback that sticks.
wjessup
371
20k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
31k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Building Adaptive Systems
keathley
44
3.3k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
6
1.2k
Code Reviewing Like a Champion
maltzj
529
40k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
360
Building an army of robots
kneath
307
47k
Transcript
既存AWSリソースをTerraformで管 理するのはつらいよ 1
Name:ユータ Occupation:SRE Twitter:@Y0u281 (オーでなくゼロです) ブログ:https://zenn.dev/yuta28 自己紹介 Twitter 2
目次 • 背景 • つらいよ ◦ インポート ◦ アカウント移行 •
まとめ 3
背景 • コンソールから作成したAWSリソースをIaC管理したい • terraform importで作成済みリソースをIaC管理できそう • 管理下に置いたら別のAWSアカウントにリソースを移管したい 4
つらいよ(インポート) 5 インポート後のtfファイルと実リソースとのパラメーター差分修正
つらいよ(インポート) 6
つらいよ(インポート) 7 resource "aws_security_group" "example" { name = "terraform-sg" #書かなくてもインポートはできる }
つらいよ(インポート) 8
つらいよ(インポート) 9 アウトバウンドルールの記述がないため削除してしま う。
つらいよ(アカウント移行) 10 Plan時に見落とすパラメーター差分
つらいよ(アカウント移行) 11
つらいよ(アカウント移行) 12
つらいよ(アカウント移行) 13 resource "aws_vpc" "example" { tags = { "Name"
= "Terraform" } }
つらいよ(アカウント移行) 14 resource "aws_vpc" "example" { cidr_block = "10.0.0.0/24" tags
= { "Name" = "Terraform" } }
まとめ 15
まとめ 16 既存リソースをIaC 管理はアカン
ありがとうございました 17 https://cuebic.hatenablog.com/