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
260
あえて、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
Why App Signing Matters for Your Android Apps - Android Bangkok Conference 2024
akexorcist
0
120
マルチプロダクトな開発組織で 「開発生産性」に向き合うために試みたこと / Improving Multi-Product Dev Productivity
sugamasao
1
300
ドメイン名の終活について - JPAAWG 7th -
mikit
33
20k
AWS Lambda のトラブルシュートをしていて思うこと
kazzpapa3
2
170
SREが投資するAIOps ~ペアーズにおけるLLM for Developerへの取り組み~
takumiogawa
1
180
Terraform未経験の御様に対してどの ように導⼊を進めていったか
tkikuchi
2
430
第1回 国土交通省 データコンペ参加者向け勉強会③- Snowflake x estie編 -
estie
0
130
なぜ今 AI Agent なのか _近藤憲児
kenjikondobai
4
1.4k
The Rise of LLMOps
asei
7
1.4k
Incident Response Practices: Waroom's Features and Future Challenges
rrreeeyyy
0
160
オープンソースAIとは何か? --「オープンソースAIの定義 v1.0」詳細解説
shujisado
7
810
Engineer Career Talk
lycorp_recruit_jp
0
160
Featured
See All Featured
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
47
2.1k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
329
21k
Done Done
chrislema
181
16k
YesSQL, Process and Tooling at Scale
rocio
169
14k
No one is an island. Learnings from fostering a developers community.
thoeni
19
3k
Fantastic passwords and where to find them - at NoRuKo
philnash
50
2.9k
Building Adaptive Systems
keathley
38
2.3k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
250
21k
Making the Leap to Tech Lead
cromwellryan
133
8.9k
A Modern Web Designer's Workflow
chriscoyier
693
190k
Product Roadmaps are Hard
iamctodd
PRO
49
11k
Happy Clients
brianwarren
98
6.7k
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 !