9. 英語ページ
AWS
CloudForma.on
gives
developers
and
systems
administrators
an
easy
way
to
create
and
manage
a
collec0on
of
related
AWS
resources,
provisioning
and
upda.ng
them
in
an
orderly
and
predictable
fashion.
http://aws.amazon.com/en/cloudformation/
classmethod.jp
9
10. easy way to create a
collection of AWS resources
アプリケーション
ミドルウェア
OS
AWSサービス
classmethod.jp
Capistrano
Chef, Puppet
CloudFormation
10
11. related AWS resources
① VPC(10.0.0.0/16)を作成して
② Subnet をMulti-‐‑‒AZ で4つ作成
③ RouteTableを設定
④ ELBを作成してEC2を2台ぶらさげ
⑤ RDS はMySQL 5.6でディスク5GB
⑥ SecurityGroupでEC2→RDSへ接続許可
classmethod.jp
11
12. easy way to manage a
collection of AWS resources
• AWSサービスの定義はJSONで記述
https://gist.github.com/miyamoto-‐‑‒daisuke/7149842
• Management Consoleやaws-‐‑‒cliから実⾏行行
aws
cloudformation
create-stack
--stack-name
mystack
--templatebody
file://vpc-knowhow.template
--parameters
file://
mystack_parameters.json
• 更更新可能(重要)
aws
cloudformation
update-stack
--stack-name
mystack
--templatebody
file://vpc-knowhow.template
--parameters
file://
mystack_parameters.json
classmethod.jp
12