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
19k
Other Decks in Technology
See All in Technology
KMP with Crashlytics
sansantech
PRO
0
240
駆け出しリーダーとしての第一歩〜開発チームとの新しい関わり方〜 / Beginning Journey as Team Leader
kaonavi
0
120
WantedlyでのKotlin Multiplatformの導入と課題 / Kotlin Multiplatform Implementation and Challenges at Wantedly
kubode
0
250
AWS Community Builderのススメ - みんなもCommunity Builderに応募しよう! -
smt7174
0
170
re:Invent 2024のふりかえり
beli68
0
110
RubyでKubernetesプログラミング
sat
PRO
4
160
#TRG24 / David Cuartielles / Post Open Source
tarugoconf
0
580
なぜfreeeはハブ・アンド・スポーク型の データメッシュアーキテクチャにチャレンジするのか?
shinichiro_joya
2
450
Formal Development of Operating Systems in Rust
riru
1
420
Unsafe.BitCast のすゝめ。
nenonaninu
0
200
AWS re:Invent 2024 re:Cap Taipei (for Developer): New Launches that facilitate Developer Workflow and Continuous Innovation
dwchiang
0
160
Accessibility Inspectorを活用した アプリのアクセシビリティ向上方法
hinakko
0
180
Featured
See All Featured
Facilitating Awesome Meetings
lara
51
6.2k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
38
1.9k
Measuring & Analyzing Core Web Vitals
bluesmoon
5
210
Practical Orchestrator
shlominoach
186
10k
Faster Mobile Websites
deanohume
305
30k
YesSQL, Process and Tooling at Scale
rocio
170
14k
It's Worth the Effort
3n
183
28k
A better future with KSS
kneath
238
17k
How STYLIGHT went responsive
nonsquared
96
5.3k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
GraphQLの誤解/rethinking-graphql
sonatard
68
10k
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 !