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
あえて、AnsibleでRDSを構築してみる
Search
Tomohiko Isobe
November 20, 2017
Technology
0
270
あえて、AnsibleでRDSを構築してみる
JAWS-UG CLI専門支部 #96 RDS入門でのLT
Tomohiko Isobe
November 20, 2017
Tweet
Share
More Decks by Tomohiko Isobe
See All by Tomohiko Isobe
今さらだけど、group_varsとhost_varsについて一言言いたい
isobetomohiko
2
1.5k
Ansible-Vaultはこう使え!
isobetomohiko
1
420
Ansibleで構成管理。〜たったひとつの冴えたやりかた〜
isobetomohiko
12
18k
Other Decks in Technology
See All in Technology
新機能VPCリソースエンドポイント機能検証から得られた考察
duelist2020jp
0
220
LINEヤフーのフロントエンド組織・体制の紹介【24年12月】
lycorp_recruit_jp
0
530
How to be an AWS Community Builder | 君もAWS Community Builderになろう!〜2024 冬 CB募集直前対策編?!〜
coosuke
PRO
2
2.8k
Amazon Kendra GenAI Index 登場でどう変わる? 評価から学ぶ最適なRAG構成
naoki_0531
0
110
Turing × atmaCup #18 - 1st Place Solution
hakubishin3
0
480
Storage Browser for Amazon S3
miu_crescent
1
140
成果を出しながら成長する、アウトプット駆動のキャッチアップ術 / Output-driven catch-up techniques to grow while producing results
aiandrox
0
310
alecthomas/kong はいいぞ / kamakura.go#7
fujiwara3
1
300
複雑性の高いオブジェクト編集に向き合う: プラガブルなReactフォーム設計
righttouch
PRO
0
110
[Ruby] Develop a Morse Code Learning Gem & Beep from Strings
oguressive
1
160
日本版とグローバル版のモバイルアプリ統合の開発の裏側と今後の展望
miichan
1
130
LINEスキマニにおけるフロントエンド開発
lycorptech_jp
PRO
0
330
Featured
See All Featured
No one is an island. Learnings from fostering a developers community.
thoeni
19
3k
Put a Button on it: Removing Barriers to Going Fast.
kastner
59
3.6k
Rails Girls Zürich Keynote
gr2m
94
13k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5.1k
Writing Fast Ruby
sferik
628
61k
Automating Front-end Workflow
addyosmani
1366
200k
Being A Developer After 40
akosma
87
590k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
48
2.2k
Side Projects
sachag
452
42k
Building Better People: How to give real-time feedback that sticks.
wjessup
365
19k
Reflections from 52 weeks, 52 projects
jeffersonlam
347
20k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
6.9k
Transcript
͋͑ͯɺAnsibleͰ RDSΛߏஙͯ͠ΈΔ 2017.11.20 JAWS-UG CLIઐࢧ෦ #96 RDSೖ ү෦ஐ
Who am I ? • ү෦ஐ • Infrastructure EngineerˏΫϦχΧϧɾϓϥο τϑΥʔϜגࣜձࣾ(2017.10-)
• job hopperʢݱࡏ8ࣾʣ • Favorites:AWS, Ansible https://clipla.jp
What’s Ansible ?
What’s Ansible ? • ߏཧπʔϧ • ΤʔδΣϯτϨεʢରʹSSHͰ͖ΕOKʣ • YAMLܗࣜͰPlaybookΛهड़Ͱ͖Δ •
ႈੑ • ๛ͳϞδϡʔϧ͕༻ҙ͞Ε͍ͯΔ
AnsibleͷAWSؔ࿈Ϟδϡʔϧ http://docs.ansible.com/ansible/latest/list_of_cloud_modules.html
͍ͬͺ͍͋Δ
RDS
͑ͦ͏ʂ
ͬͯΈͨ ※࣮ࡍ͏গ͠ύϥϝʔλ͕ඞཁͰ͢
Ͱ͖ͨͬΆ͍
͋Εʁ
Α͘ݟΔͱ
ͪΐɺϚάωςΟοΫͬͯw
ެࣜυΩϡϝϯτΛ֬ೝ http://docs.ansible.com/ansible/latest/rds_module.html
ετϨʔδλΠϓʹؔ͢Δ Φϓγϣϯ͕ͳ͍ ※Ansible͕͍ͬͯΔboto͕ରԠ͍ͯ͠ͳ͍Α͏Ͱ͢ (boto3ͰରԠ)
Ͳ͏͢Δ͔
RDSΠϯελϯε࡞෦Λ AWS CLI Ͱ࣮͢ΕΑͦ͞͏
AnsibleʹҙͷίϚϯυΛ ࣮ߦͰ͖ΔϞδϡʔϧ͕͋Δ • shellϞδϡʔϧ http://docs.ansible.com/ansible/latest/shell_module.html
AnsibleʹҙͷίϚϯυΛ ࣮ߦͰ͖ΔϞδϡʔϧ͕͋Δ • ಉ༷ͷϞδϡʔϧʹɺcommandϞδϡʔϧ ͋Δ͕ɺڥมύΠϓɺϦμΠϨΫτͳͲ ͕͑ͳ͍
࣮ͯ͠Έͨ • Πϯελϯε࡞ BXTSETDSFBUFECJOTUBODF Λ࣮ߦ
shellϞδϡʔϧΛ༻͢Δࡍ ɺႈੑʹҙ • ඪ४ϞδϡʔϧΛ༻͢Δ߹ɺAnsible͕ ႈੑΛ୲อͯ͘͠ΕΔ͕ɺshellcommand Ϟδϡʔϧৗʹ࣮ߦ͞Εͯ͠·͏ • RDS࡞ͷ߹ɺಉ໊ͷΠϯελϯε͕͢Ͱ ʹଘࡏ͢ΔͱΤϥʔʹͳΔ
࣮ͯ͠Έͨ • Πϯελϯεଘࡏ֬ೝ BXTSETEFTDSJCFECJOTUBODFT Λ࣮ߦ ্هͰऔಘͨ͠ҰཡΛอ࣋
࣮ͯ͠Έͨ • Πϯελϯε࡞ ಉ໊Πϯελϯε͕ͳ͚Ε࣮ߦ
࣮ͯ͠Έͨ • ύϥϝʔλఆٛ
࣮ߦʂ
Ͱ͖ͨʂ
·ͱΊ
·ͱΊ • ීஈAnsibleΛར༻͍ͯ͠ΔͷͳΒɺAnsible ͔ΒAWS CLIΛ࣮ߦ͢Δ͜ͱͰศརʹͳΔ͜ ͱ • ႈੑΤϥʔͷରॲΛ͓Εͳ͘
·ͱΊ • ଞʹAnsible X AWSͰ৭ʑͬͯ·͢ • https://qiita.com/isobecky74
Thank you !