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
AnsibleとCloudFormationの組み合わせでトレーニング環境を運用している話/a...
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
mito
February 10, 2021
Technology
3.5k
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
AnsibleとCloudFormationの組み合わせでトレーニング環境を運用している話/ansible-and-cfn
mito
February 10, 2021
More Decks by mito
See All by mito
AWS Lambdaの更新で502エラーが起きた話 / How an AWS Lambda Update Caused 502 Errors
mito201
1
180
クラウドリフトとクラウドシフトで変わる運用/CODT2023
mito201
0
190
クラウドネイティブエンジニアを育成する/CNDT2022
mito201
1
670
Backlogをサポート窓口として活用する/JBUG_Summer_2022
mito201
0
980
sudo_pip_installするときはよく考えて!/sudo_pip_install_ansible
mito201
0
1.1k
VBAで始める手のひらの上の自動化/vba_faile-coordination
mito201
0
1.3k
JANOG48_NW運用自動化の拡大/janog48_nwauto
mito201
2
310
VBAから見たAnsiblePlaybookとの比較/diff-vba-ansible
mito201
0
610
Other Decks in Technology
See All in Technology
Refining Active Record
shugo
0
180
dbt Semantic Layerで進めるenechainのデータ民主化
akizhou
1
160
その Valkey 使いこなしていますか?
onk
PRO
5
1.7k
実践!Cloud Run ハンズオン!! / Cloud Run handson
y0hgi
2
300
Webの常識が通じないHTMLメールのダークモード
teamlab
PRO
0
150
『SAR衛星データ解析入門』のご紹介とその応用
syuchimu
0
130
Tofu-Controller lightning talk @ Containerday 2026
gionn
0
140
コンテナ運用におけるネットワーク・コンテナコストの削減方法/How to Reduce Network and Container Costs in Container Operations
masakiokuda
2
340
10年後、Engineering 行為を剥奪されるとして、わたしたちは、どう、何を創ればいいだろうか。 / If Engineering Is Taken Away in 10 Years, How and What Should We Create?
bitkey
PRO
1
220
夫婦で子育てするための育児標準化
codmoninc
PRO
0
510
Browser Spec: Testing Hotwire with Ruby
takahashim
1
140
⾮構造化データを価値に変える AI エージェント基盤とその組織
ivry_presentationmaterials
0
210
Featured
See All Featured
Balancing Empowerment & Direction
lara
6
1.3k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
940
[SF Ruby Conf 2025] Rails X
palkan
3
1.5k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
1k
AI: The stuff that nobody shows you
jnunemaker
PRO
10
1.2k
Exploring anti-patterns in Rails
aemeredith
4
540
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
How to train your dragon (web standard)
notwaldorf
96
6.9k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
50
10k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
710
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
2
410
Producing Creativity
orderedlist
PRO
348
41k
Transcript
AnsibleとCloudFormationの組み合わせで トレーニング環境を運用している話 2021/2/10 Ansible Night Online 2021.02 伊藤雅人 @mizuto1217
はじめに 2 ✘ Ansibleトレーニングで使用する環境を毎回構築しています ✘ 毎回構築する[運用]です ✘ 本日のLTでは、このトレーニング環境構築について話します
AnsibleとCloudFormationの組み合わせ AnsibleからCloudFormationをコールしています 3
CloudFormation ✘ トレーニング環境を1セット作成 ✘ 1セット=複数のサーバや複数の ルータ ✘ EIPの付与やVPCの設定などを 行う Ansible
✘ 任意のセット数分、 CloudFormationをまわす ✘ パッケージのアップデートや Ansibleのインストール、 ファイルのダウンロードなどを 行う 4 役割
AnsibleとCloudFormationの組み合わせ ✘ 作成数のコントロールがとてもしやすい ✘ 毎回変わるIPアドレスや固定のログインID等のパラメータ一覧表を Templateモジュール使って、自動生成できる ✘ AnsibleやCloudFormationではコントロールしにくい部分は、 予めイメージを用意し、それを元に作成する 5
特徴
運用してわかったこと ✘ 数クリックで構築できるため作業者の負担が少ない ✘ トレーニング内容に合わせて、機器の追加や変更もしやすい ◦ 文字通りyamlが設計書(=あるべき姿) ✘ 初期化より、毎回構築のほうがとても効率的 ◦
把握しづらい状態から元に戻すより、いちから作成する方が トラブルもない ◦ インスタンスを残す必要がないのでコストが抑えられる 6
運用してはまったこと ✘ EC2のリソース制限に引っかかって、中途半端な状態のインスタンスが 生成された ◦ ログインできない、疎通が取れないなど ✘ AMIが消えていた ◦ WindowsServerで特定月までアップデートされたAMI
✘ 一部のリソースが削除されず残っており、EC2の利用料金が チョット↑上がっていた 7
運用して改善したいこと ✘ トレーニング環境の構築速度の向上 ◦ 15セットの作成で3時間程度かかっている ◦ インスタンス作成を並列で行う必要があるけど、 どう実現させるか ✘ べきとう性を担保できないモジュールの使い方を改善
8
まとめ ✘ 定型作業はやはり自動化が鉄板です ◦ 特に、失敗しても再実行するだけでいい状況は自動化しやすい ✘ 自動化により、裏側の事情への意識が薄くなっていた ◦ どれだけリソースを使っているか抜け落ちていた ✘
まだまだ自動化できることはあるぞーぅ! ◦ 手作業をさらに減らす、かける工数をひたすら減らす 9
ご視聴ありがとうございました 10