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
AWS初心者がCodenize.toolsでInfrastructure as Codeした話...
Search
Naoto Enokawa
July 24, 2015
0
840
AWS初心者がCodenize.toolsでInfrastructure as Codeした話/jawsug-beginner2-lt
JAWS-UG初心者支部【第2回】懇親会LT資料
https://jawsug-beginner.doorkeeper.jp/events/26430
Naoto Enokawa
July 24, 2015
Tweet
Share
More Decks by Naoto Enokawa
See All by Naoto Enokawa
CircleCI Orbs にコントリビュートした話 / Story contributed to CircleCI Orbs
enokawa
0
610
AWS re:Invent 2017行ってきました報告 / JAWS-UG Okinawa 20180106
enokawa
1
320
Roadworkerではじめる大量DNS移行 / Codenize Meetup
enokawa
0
3.4k
AWS構築のハマりポイントを詳しく解説 / Cloud on the BEACH 2016
enokawa
3
1.5k
JAWS DAYS 2016 ランチセッション
enokawa
0
580
AWS SDK for RubyでDynamoDBを操作してみた
enokawa
0
340
cloudpackインターン成果報告
enokawa
0
2k
ownCloud on AWS in Hackers Champloo 前夜祭 #hcmpl
enokawa
0
620
#jawsug 沖縄 勉強会「AWS触ってみたけどその後どうしてる?」
enokawa
0
98
Featured
See All Featured
Designing for Performance
lara
610
69k
Facilitating Awesome Meetings
lara
55
6.5k
Designing for humans not robots
tammielis
253
25k
Rails Girls Zürich Keynote
gr2m
95
14k
Unsuck your backbone
ammeep
671
58k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
7
820
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
53
2.9k
Bash Introduction
62gerente
614
210k
Reflections from 52 weeks, 52 projects
jeffersonlam
351
21k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
229
22k
Six Lessons from altMBA
skipperchong
28
4k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
8
480
Transcript
AWSॳ৺ऀ͕ Codenize.toolsͰ Infrastructure as Codeͨ͠ Naoto Enokawa
ࣗݾհ • ͑ͷ͔Θ ͳ͓ͱ • cloudpack৽ଔ̍ • ԭೄੜ·Εԭೄҭͪ • JAWS-UGԭೄίΞϝϯόʔ
• AWSॳ৺ऀʗΫϥυΏͱΓ
Infrastructure as Code • ΠϯϑϥΛίʔυͰॻ͘ • ίʔυʹ͢Δ͜ͱͰϛεΛ͙ • εϐʔσΟʹΠϯϑϥΛௐୡͰ͖Δ
None
None
Piculet • Ruby • AWSͷSecurity GroupsΛίʔυԽ • ΫοΫύουͷ@sgwr_dts ͞Μ͕࡞
PiculetͷϝϦοτ • ΞΧϯτΛ·͍ͨͰSGΛҠߦͰ͖Δ • ։ൃˠεςʔδϯάˠຊ൪ͷSGҠߦ͕ϥΫ • 10͋ΕҠߦͰ͖Δ • --dry-runΦϓγϣϯ͕͑Δ
खॱ
खॱ • IAMϢʔβʔ࡞ • credentialsઃఆ • PiculetΠϯετʔϧ • Piculet࣮ߦʂ
IAMϢʔβʔ࡞ • SecurityGroupsͷૢ࡞ΛڐՄ͢Δ ϙϦγʔΛద༻ • IP੍ݶΛೖΕΔͱঘΑ͠
$ cat ~/.aws/credentials [dev] #։ൃڥ༻ aws_access_key_id = AKIXXXXXXXXXXXXXXXX aws_secret_access_key =
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS [prod] #ຊ൪ڥ༻ aws_access_key_id = AKIXXXXXXXXXXXXXXXX aws_secret_access_key = SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
$ gem install piculet
$ piculet -e -p dev -r ap-northeast-1 > Groupfile
͜ͷSG͕
security_group "web-sg" do ingress do permission :tcp, 80..80 do ip_ranges(
"0.0.0.0/0" ) end end end ͜Μͳײ͡
։ൃڥ͔Β ຊ൪ڥʹઃఆ͢Δʹ
$ piculet -a -p prod -r ap-northeast-1 ※--dry-runΦϓγϣϯ͑Δ͠ศརʂ
Future • Github(private)Ͱόʔδϣϯཧ • SGίʔυϨϏϡʔ
AWSॳ৺ऀ͕ Codenize.toolsͰ Infrastructure as Codeͨ͠ Naoto Enokawa